/** * OutputItem interface method * @throws LBoxException */ public function __get($name = "") { try { switch ($name) { default: return parent::__get($name); } } catch (Exception $e) { throw $e; } }
/** * OutputItem interface method * @throws LBoxException */ public function __get($name = "") { try { switch ($name) { case "size_x": if (!$this->params[$name]) { $this->params[$name] = $this->getImgX(); } return $this->outputFilter instanceof LBoxOutputFilter ? $this->outputFilter->prepare($name, $this->params[$name]) : $this->params[$name]; break; case "size_y": if (!$this->params[$name]) { $this->params[$name] = $this->getImgY(); } return $this->outputFilter instanceof LBoxOutputFilter ? $this->outputFilter->prepare($name, $this->params[$name]) : $this->params[$name]; break; default: return parent::__get($name); } } catch (Exception $e) { throw $e; } }