/** * Overloaded method call to give access to the list properties. * * @param string $p_element - the property name * @return mix - the property value */ public function __get($p_property) { switch (strtolower($p_property)) { case 'item': return $this->getItem(); case 'previous': return $this->start - $this->index; case 'next': return $this->start + $this->index; case 'has_previous': return $this->hasPreviousElements(); case 'has_next': return $this->hasNextElements(); } return parent::__get($p_property); }
/** * Overloaded method call to give access to the list properties. * * @param string $p_element - the property name * @return mix - the property value */ public function __get($p_property) { if (strtolower($p_property) == 'item') { return $this->getItem(); } return parent::__get($p_property); }
/** * Overloaded method call to give access to the list properties. * * @param string $p_element - the property name * @return mix - the property value */ public function __get($p_property) { return parent::__get($p_property); }