/** * Geef het EQApp object door, als het nog niet bestaat: maak het object * Het object zal maar 1x aangemaakt worden. * @param string $id ClientID * @return Object EQApp */ public static function getApp($id = null) { if (!self::$app) { ecpimport("application.application"); //if(!$arg) //maak grote error self::$app = ECP_App::getInstance($id); } return self::$app; }
/** * Class constructor. * * @param string $id A client identifier. * @since 1.0 */ public function __construct($id) { $this->conf = ECPFactory::getConfig(); $this->secret = $this->conf->get('secret'); self::$_id = $id; }
protected function getDbRestrictions($conf = null) { //door niks op te geven wordt het minimum aan bevoegdheden ingesteld in EQApp $conf = parent::getDbRestrictions(); return $conf; }