/** * Vrací data pro Grid * * @param IECfg $handledObejct objekt poskytující data * @param type $fallBackUrl */ public function __construct($handledObejct, $fallBackUrl = null) { $this->handledObejct = $handledObejct; parent::__construct(); $this->setBackUrl($fallBackUrl); $this->webPage = EaseShared::webPage(); $this->title = $this->webPage->getRequestValue('title'); if ($this->title) { $this->filename = preg_replace("/[^0-9^a-z^A-Z^_^.]/", "", str_replace(' ', '_', $this->title)); } $cols = $this->webPage->getRequestValue('cols'); if ($cols) { $col = explode('|', $cols); $names = $this->webPage->getRequestValue('names'); $nam = explode('|', urldecode($names)); $this->columns = array_combine($col, $nam); } $this->ajaxify(); }
/** * Objekt předvoleb */ function __construct() { parent::__construct(); $this->loadPrefs(); }
/** * Přiřadí objektu odkaz na objekt uživatele * * @param object|EaseUser $user pointer to user object * @param object $targetObject objekt kterému je uživatel * přiřazován. * * @return boolean */ function setUpUser(&$user, &$targetObject = null) { if (isset($this->userColumn)) { $this->setDataValue($this->userColumn, $user->getMyKey()); } return parent::setUpUser($user, $targetObject); }