Ejemplo n.º 1
0
 public function itemAt($index)
 {
     if (is_integer($index)) {
         return parent::itemAt($index);
     } else {
         return $this->findCookieByName($index);
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns the item at the specified offset.
  * This method is exactly the same as {@link offsetGet}.
  * @param integer the index of the item
  * @return mixed the item at the index
  * @throws TInvalidDataValueException if the index is out of the range
  */
 public function itemAt($index)
 {
     if ($this->_customPaging) {
         return parent::itemAt($index);
     } else {
         return parent::itemAt($this->_pageSize * $this->_currentPageIndex + $index);
     }
 }