Esempio n. 1
0
 /**
  * constructor to set up the object.
  *
  * @param string $visibility The name of the rights group that can access this controller.
  *
  * @since 1.0
  */
 public function __construct($visibility = 'Public')
 {
     self::$logger = new Logger('IndexController');
     self::$logger->debug('>>__construct()');
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct($visibility);
     self::$logger->debug('<<__construct');
 }
 /**
  * Constructor.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('RecordSelectorController');
     self::$logger->debug('>>__construct()');
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Public');
     self::$logger->debug('<<__construct');
 }
Esempio n. 3
0
 /**
  * The constructor.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('LogController');
     self::$logger->debug('>>__construct()');
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Admin');
     $this->setTitle('Displaying the requested log');
     self::$logger->debug('<<__construct');
 }
 /**
  * Constructor.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('GenSecureQueryStringController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Admin');
     $this->setTitle('Generate Secure Query Strings');
     self::$logger->debug('<<__construct');
 }
Esempio n. 5
0
 /**
  * the constructor.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('InstallController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     parent::__construct('Public');
     // set up the title and meta details
     $this->setTitle('Installing ' . $config->get('app.title'));
     self::$logger->debug('<<__construct');
 }
Esempio n. 6
0
 /**
  * constructor to set up the object.
  *
  * @since 2.0.3
  */
 public function __construct()
 {
     self::$logger = new Logger('PhpinfoController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Admin');
     // set up the title and meta details
     $this->setTitle('Information about the PHP installation');
     self::$logger->debug('<<__construct');
 }
 /**
  * the constructor.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('ListActiveRecordsController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Admin');
     // set up the title and meta details
     $this->setTitle('Listing all active records in the system');
     $this->setDescription('Page to list all active records.');
     $this->setKeywords('list,all,active,records');
     $viewState = ViewState::getInstance();
     $viewState->set('renderAdminMenu', true);
     self::$logger->debug('<<__construct');
 }
Esempio n. 8
0
 /**
  * constructor to set up the object.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('LogoutController');
     self::$logger->debug('>>__construct()');
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Public');
     $config = ConfigProvider::getInstance();
     $sessionProvider = $config->get('session.provider.name');
     $session = SessionProviderFactory::getInstance($sessionProvider);
     if ($session->get('currentUser') !== false) {
         $this->setRecord($session->get('currentUser'));
     } else {
         self::$logger->warn('Logout controller called when no user is logged in');
     }
     // set up the title and meta details
     $this->setTitle('Logged out successfully.');
     $this->setDescription('Logout page.');
     $this->setKeywords('Logout,logon');
     self::$logger->debug('<<__construct');
 }
Esempio n. 9
0
 /**
  * constructor to set up the object.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('CacheManager');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Admin');
     $this->setTitle('Cache Manager');
     $this->dataDir = $config->get('app.file.store.dir') . 'cache/';
     self::$logger->debug('<<__construct');
 }
Esempio n. 10
0
 /**
  * constructor to set up the object.
  *
  * @param string $visibility The name of the rights group that can access this controller.
  *
  * @since 1.0
  */
 public function __construct($visibility = 'Public')
 {
     self::$logger = new Logger('SearchController');
     self::$logger->debug('>>__construct(visibility=[' . $visibility . '])');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct($visibility);
     self::$logger->debug('<<__construct');
 }
Esempio n. 11
0
 /**
  * constructor to set up the object.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('LoginController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Public');
     $this->personObject = new Person();
     $this->personView = View::getInstance($this->personObject);
     $this->setRecord($this->personObject);
     // set up the title and meta details
     $this->setTitle('Login to ' . $config->get('app.title'));
     $this->setDescription('Login page.');
     $this->setKeywords('login,logon');
     self::$logger->debug('<<__construct');
 }
Esempio n. 12
0
 /**
  * constructor to set up the object.
  *
  * @since 1.0
  */
 public function __construct()
 {
     self::$logger = new Logger('FeedController');
     self::$logger->debug('>>__construct()');
     $config = ConfigProvider::getInstance();
     // ensure that the super class constructor is called, indicating the rights group
     parent::__construct('Public');
     self::$logger->debug('<<__construct');
 }