Пример #1
0
 /**
  * Returns the last item in this DataList
  *
  *  @return DataObject
  */
 public function last()
 {
     foreach ($this->dataQuery->lastRow()->execute() as $row) {
         return $this->createDataObject($row);
     }
     return null;
 }