Exemplo n.º 1
0
    public function __construct()
    {
        parent::__construct();

        $this->_authenticationRequired = false;
        $this->_moduleDirectory = 'wizard';
        $this->_moduleName = 'wizard';
        $this->_moduleTabText = '';
        $this->_subTabs = array();

        /*
        $this->addPage('Welcome!', './modules/wizard/WizardIntroIntro.tpl', '', false, true);
        $this->addPage('License', './modules/wizard/WizardIntroLicense.tpl', '', true, true);
        $this->addPage('Register', './modules/wizard/WizardIntroProf.tpl', '', false, true);
        $this->addPage('Setup Users', './modules/wizard/WizardIntroUsers.tpl', '
            $users = new Users($siteID);
            $mp = $users->getAll();
            $data = $users->getLicenseData();

            $this->_template->assign(\'users\', $mp);
            $this->_template->assign(\'totalUsers\', $data[\'totalUsers\']);
            $this->_template->assign(\'userLicenses\', $data[\'userLicenses\']);
            $this->_template->assign(\'accessLevels\', $users->getAccessLevels());
        ');
        $this->addPage('Localization', './modules/wizard/WizardIntroLocalization.tpl', '
            $this->_template->assign(\'timeZone\', $_SESSION[\'CATS\']->getTimeZone());
            $this->_template->assign(\'isDateDMY\', $_SESSION[\'CATS\']->isDateDMY());
        ');

        $this->addJsInclude('./js/wizardIntro.js');
        $this->setFinishURL('?m=home');
        */
    }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = false;
     $this->_moduleName = 'login';
     $this->_moduleDirectory = 'login';
 }
Exemplo n.º 3
0
    public function __construct()
    {
        parent::__construct();

        $this->_authenticationRequired = false;
        $this->_moduleDirectory = 'graphs';
        $this->_moduleName = 'graphs';
        $this->_subTabs = array();

        if (isset($_GET['width']) && $_GET['width'] < 2000)
        {
            $this->width = $_GET['width'];
        }
        else
        {
            $this->width = 300;
        }

        if (isset($_GET['height']) && $_GET['height'] < 1200)
        {
            $this->height = $_GET['height'];
        }
        else
        {
            $this->height = 200;
        }
    }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = false;
     $this->_moduleDirectory = 'install';
     $this->_moduleName = 'install';
     $this->_schema = CATSSchema::get();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'activity';
     $this->_moduleName = 'activity';
     $this->_moduleTabText = 'Activities';
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'import';
     $this->_moduleName = 'import';
     $this->_subTabs = array();
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'home';
     $this->_moduleName = 'home';
     $this->_moduleTabText = 'Dashboard';
     $this->_subTabs = array();
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'joborders';
     $this->_moduleName = 'joborders';
     $this->_moduleTabText = 'Job Orders';
     $this->_subTabs = array('Add Job Order' => 'javascript:void(0);*js=showPopWin(\'' . CATSUtility::getIndexName() . '?m=joborders&amp;a=addJobOrderPopup\', 400, 250, null);*al=' . ACCESS_LEVEL_EDIT, 'Search Job Orders' => CATSUtility::getIndexName() . '?m=joborders&amp;a=search');
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'calendar';
     $this->_moduleName = 'calendar';
     $this->_moduleTabText = 'Calendar';
     $this->_subTabs = array('My Upcoming Events' => 'javascript:void(0);*js=calendarUpcomingEvents();', 'Add Event' => 'javascript:void(0);*js=userCalendarAddEvent();*al=' . ACCESS_LEVEL_EDIT, 'Goto Today' => 'javascript:void(0);*js=goToToday();');
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = false;
     $this->_moduleDirectory = 'attachments';
     $this->_moduleName = 'attachments';
     $this->_moduleTabText = '';
     $this->_subTabs = array();
 }
Exemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'reports';
     $this->_moduleName = 'reports';
     $this->_moduleTabText = 'Reports';
     $this->_subTabs = array('EEO Reports' => CATSUtility::getIndexName() . '?m=reports&amp;a=customizeEEOReport', 'Custom Reports' => CATSUtility::getIndexName() . '?m=customizedReports');
 }
Exemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'candidates';
     $this->_moduleName = 'candidates';
     $this->_moduleTabText = 'Candidates';
     $this->_subTabs = array('Add Candidate' => CATSUtility::getIndexName() . '?m=candidates&amp;a=add*al=' . ACCESS_LEVEL_EDIT, 'Import Candidates' => CATSUtility::getIndexName() . '?m=import&amp;a=importSelectType&amp;typeOfImport=Candidates', 'Import Resumes' => CATSUtility::getIndexName() . '?m=import&amp;a=importSelectType&amp;typeOfImport=resume', 'Search Candidates' => CATSUtility::getIndexName() . '?m=candidates&amp;a=search');
 }
Exemplo n.º 13
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'contacts';
     $this->_moduleName = 'contacts';
     $this->_moduleTabText = 'Contacts';
     $this->_subTabs = array('Add Contact' => CATSUtility::getIndexName() . '?m=contacts&amp;a=add*al=' . ACCESS_LEVEL_EDIT, 'Search Contacts' => CATSUtility::getIndexName() . '?m=contacts&amp;a=search', 'Cold Call List' => CATSUtility::getIndexName() . '?m=contacts&amp;a=showColdCallList');
 }
Exemplo n.º 14
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'lists';
     $this->_moduleName = 'lists';
     $this->_moduleTabText = 'Lists';
     $this->_subTabs = array('Show Lists' => CATSUtility::getIndexName() . '?m=lists');
 }
Exemplo n.º 15
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'companies';
     $this->_moduleName = 'companies';
     $this->_moduleTabText = 'Companies';
     $this->_subTabs = array('Add Company' => CATSUtility::getIndexName() . '?m=companies&amp;a=add*al=' . ACCESS_LEVEL_EDIT . '*hrmode=0', 'Search Companies' => CATSUtility::getIndexName() . '?m=companies&amp;a=search*hrmode=0', 'Go To My Company' => CATSUtility::getIndexName() . '?m=companies&amp;a=internalPostings*hrmode=0');
 }
Exemplo n.º 16
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'customizedReports';
     $this->_moduleName = 'customizedReports';
     $this->_moduleTabText = '';
     $this->_subTabs = array();
 }
Exemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleName = 'tests';
     $this->_moduleDirectory = 'tests';
     $this->_unitTestCases = array(array('AddressParserTest', 'AddressParser Unit Tests'), array('AJAXInterfaceTest', 'AJAX Interface Unit Tests'), array('AttachmentsTest', 'Attachments Unit Tests'), array('ArrayUtilityTest', 'ArrayUtility Unit Tests'), array('BrowserDetectionTest', 'Browser Detection Unit Tests'), array('CalendarTest', 'Calendar Unit Tests'), array('DatabaseConnectionTest', 'DatabaseConnection Unit Tests'), array('DatabaseSearchTest', 'DatabaseSearch Unit Tests'), array('DateUtilityTest', 'DateUtility Unit Tests'), array('EmailTemplatesTest', 'EmailTemplates Unit Tests'), array('EncryptionTest', 'Encryption Unit Tests'), array('ExportTest', 'Export Unit Tests'), array('FileUtilityTest', 'FileUtility Unit Tests'), array('HashUtilityTest', 'HashUtility Unit Tests'), array('ResultSetUtilityTest', 'ResultSetUtility Unit Tests'), array('StringUtilityTest', 'StringUtility Unit Tests'), array('VCardTest', 'VCard Unit Tests'));
     $this->_systemTestCases = array(array('LoginWebTest', 'Login Module System Tests'), array('HomeWebTest', 'Home Module System Tests'), array('ActivitiesWebTest', 'Activities Module System Tests'), array('JobOrdersWebTest', 'Job Orders Module System Tests'), array('CandidatesWebTest', 'Candidates Module System Tests'), array('CompaniesWebTest', 'Companies Module System Tests'), array('ContactsWebTest', 'Contacts Module System Tests'), array('ReportsWebTest', 'Reports Module System Tests'), array('CalendarWebTest', 'Calendar Module System Tests'), array('SettingsWebTest', 'Settings Module System Tests'));
     $this->_AJAXTestCases = array(array('ActivityTest', 'Activity AJAX Tests'), array('GetCompanyContactsTest', 'GetCompanyContacts AJAX Tests'), array('GetCompanyLocationTest', 'GetCompanyLocation AJAX Tests'), array('GetCompanyLocationAndDepartmentsTest', 'GetCompanyLocationAndDepartments AJAX Tests'), array('GetCompanyNamesTest', 'GetCompanyNames AJAX Tests'), array('GetDataItemJobOrdersTest', 'GetDataItemJobOrders AJAX Tests'), array('GetParsedAddressTest', 'GetParsedAddress AJAX Tests'), array('GetPipelineDetailsTest', 'GetPipelineDetails AJAX Tests'), array('GetPipelineJobOrderTest', 'GetPipelineJobOrder AJAX Tests'), array('SetCandidateJobOrderRatingTest', 'SetCandidateJobOrderRating AJAX Tests'), array('TestEmailSettingsTest', 'TestEmailSettings AJAX Tests'), array('ZipLookupTest', 'ZipLookup AJAX Tests'));
 }
Exemplo n.º 18
0
    public function __construct()
    {
        parent::__construct();

        $this->_authenticationRequired = true;
        $this->_moduleDirectory = 'lists';
        $this->_moduleName = 'lists';
        $this->_moduleTabText = 'Lists';
        $this->_subTabs = array(
            'Show Lists'     => CATSUtility::getIndexName() . '?m=lists'
           /* 'New Static List' => CATSUtility::getIndexName() . '?m=lists&a=newListStatic*al=' . ACCESS_LEVEL_EDIT, */
           /* 'New Dynamic List' => CATSUtility::getIndexName() . '?m=lists&a=newListDynamic*al=' . ACCESS_LEVEL_EDIT */
        );
    }
Exemplo n.º 19
0
 public function __construct()
 {
     parent::__construct();
     $this->_realAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'settings';
     $this->_moduleName = 'settings';
     $this->_moduleTabText = 'Settings';
     /* Only CATS professional on site gets to make career portal customizer users. */
     if (!file_exists('modules/asp') && LicenseUtility::isProfessional()) {
         $this->_settingsUserCategories = array(array('Career Portal Customizer', 'careerportal', 'This user can\'t do anything but modify the career portal settings.  It is intended to be used by the CATS Professional Support Team.  This user does not count against your maximum users.', ACCESS_LEVEL_SA, ACCESS_LEVEL_READ));
     }
     $mp = array('Administration' => CATSUtility::getIndexName() . '?m=settings&amp;a=administration', 'My Profile' => CATSUtility::getIndexName() . '?m=settings');
     /* Only CATS professional can download addons. */
     if (file_exists('modules/asp') || LicenseUtility::isProfessional()) {
         $mp['Downloads'] = CATSUtility::getIndexName() . '?m=settings&amp;a=downloads';
     }
     $this->_subTabs = $mp;
     $this->_hooks = $this->defineHooks();
 }
Exemplo n.º 20
0
    public function __construct()
    {
        parent::__construct();

        $this->_realAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
        $this->_authenticationRequired = true;
        $this->_moduleDirectory = 'settings';
        $this->_moduleName = 'settings';
        $this->_moduleTabText = 'Settings';

        $mp = array(
            'Administration' => CATSUtility::getIndexName() . '?m=settings&amp;a=administration',
            'My Profile'     => CATSUtility::getIndexName() . '?m=settings'
        );

        $mp['Downloads'] = CATSUtility::getIndexName() . '?m=settings&a=downloads';

        $this->_subTabs = $mp;
        
        $this->_hooks = $this->defineHooks();
    }
Exemplo n.º 21
0
 /**
  * Initialize this interface
  * @param array $arguments Commandline arguments
  * @param \Cx\Core\Core\Controller\Cx $cx Contrexx main class
  */
 public function __construct($arguments, $cx)
 {
     parent::__construct($cx);
     $command = 'help';
     if (isset($arguments[1])) {
         $command = $arguments[1];
     }
     if ($command == 'help') {
         if (isset($arguments[2])) {
             if ($this->commandExists($arguments[2])) {
                 $command = $this->getCommand($arguments[2]);
                 echo 'Command `' . $command->getName() . "`\r\n" . $command->getDescription() . "\r\n\r\n" . $command->getSynopsis() . "\r\n\r\n" . $command->getHelp() . "\r\n";
                 exit;
             } else {
                 echo 'No such subcommand, read the list:' . "\r\n\r\n";
             }
         }
         $this->showHelp();
     } else {
         if ($command == 'moo') {
             $this->showFlag();
         } else {
             if ($this->commandExists($command)) {
                 try {
                     $this->getCommand($command)->execute($arguments);
                 } catch (\Cx\Core_Modules\Workbench\Model\Entity\CommandException $e) {
                     echo 'Command failed: ' . $e->getMessage();
                 } catch (\Exception $e) {
                     echo 'FATAL: ' . $e->getMessage();
                 }
             } else {
                 $this->showHelp();
             }
         }
     }
     echo "\r\n";
 }