コード例 #1
0
 /**
  * getter for filtered param
  * @param string $name
  * @return mixed
  * @throws Exception
  */
 public function __get($name = "")
 {
     try {
         $value = $this->getParamDirect($name);
         // multilang get
         if ($name != "*" && !array_key_exists($name, $this->params)) {
             $value = $this->getParamDirect($this->getColNameLNGCurrent($name));
         }
         if ($this->outputFilter instanceof LBoxOutputFilter) {
             return $this->outputFilter->prepare($name, $value);
         } else {
             return $value;
         }
     } catch (Exception $e) {
         throw $e;
     }
 }
コード例 #2
0
 /**
  * Vraci attributy
  * @param string $name
  * @throws LBoxExceptionConfig
  */
 public function __get($name = "")
 {
     switch ($name) {
         default:
             $value = $this->getParamDirect($name);
             if ($this->outputFilter instanceof LBoxOutputFilter) {
                 return $this->outputFilter->prepare($name, $value);
             } else {
                 return $value;
             }
     }
 }
コード例 #3
0
 /**
  * filtrovany getter
  * @return mixed
  */
 public function __get($name = "")
 {
     try {
         if ($this->outputFilter instanceof LBoxOutputFilter) {
             return $this->outputFilter->prepare($name, $this->getParamDirect($name));
         } else {
             return $this->getParamDirect($name);
         }
     } catch (Exception $e) {
         throw $e;
     }
 }
コード例 #4
0
ファイル: class.LBoxPagingPage.php プロジェクト: palmic/lbox
 /**
  * getter na filtrovane atributy
  * @param string $name
  * @return mixed
  */
 public function __get($name = "")
 {
     try {
         if (strlen($name) < 1) {
             throw new LBoxExceptionFront(LBoxExceptionPaging::MSG_PARAM_STRING_NOTNULL, LBoxExceptionPaging::CODE_BAD_PARAM);
         }
         if ($this->outputFilter instanceof LBoxOutputFilter) {
             return $this->outputFilter->prepare($name, $this->getParamDirect($name));
         } else {
             return $this->getParamDirect($name);
         }
     } catch (Exception $e) {
         throw $e;
     }
 }