Source for file Area.php
Documentation is available at Area.php
require_once 'index.php';
$applications = $admin->perm ->getApplications ();
if (empty ($applications)) {
echo 'Run the <strong>Application</strong> test first<br />';
echo '<strong>Sub Tests:</strong><br />';
echo '<a href="Area_Admin_Areas.php' . $qstring . '">Area Admin Areas</a>';
for ($i = 1; $i < 4; $i++ ) {
'application_id' => $applications[$id]['application_id'],
'area_define_name' => 'AREA'. rand(),
$areaId = $admin->perm ->addArea ($data);
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
echo 'Created Area Id <strong>' . $areaId . '</strong><br />';
$areas = $admin->perm ->getAreas ();
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
} elseif (empty ($areas)) {
echo 'No areas were found, thus we\'ve halted the rest of the test<br />';
echo 'These are our current areas:';
Var_Dump ::display ($areas);
$filters = array ('area_id' => $areas[$id]['area_id']);
$rmArea = $admin->perm ->removeArea ($filters);
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
echo '<strong>Area3</strong> was removed<br />';
'area_define_name' => 'AREA2_' . $areas[$id2]['area_id'] . 'updated'. rand(),
'application_id' => $applications[$id]['application_id'],
$filters = array ('area_id' => $areas[$id]['area_id']);
$upArea = $admin->perm ->updateArea ($data, $filters);
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
echo '<strong>Area2</strong> was updated<br />';
$params = array ('filters' => array ('area_id' => $areas[$id]['area_id']));
$result = $admin->perm ->getAreas ($params);
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
} elseif (empty ($result)) {
echo 'No areas were found<br />';
Var_Dump ::display ($result);
$areas = $admin->perm ->getAreas ();
echo '<strong>Error on line: '.__LINE__. '</strong><br />';
} elseif (empty ($areas)) {
echo 'No areas were found<br />';
echo 'These are our current areas:';
Var_Dump ::display ($areas);
Documentation generated on Mon, 11 Mar 2019 14:16:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|