Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * Objekt předvoleb
  */
 function __construct()
 {
     parent::__construct();
     $this->loadPrefs();
 }
Exemplo n.º 3
0
 /**
  * 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);
 }