コード例 #1
0
ファイル: Table.php プロジェクト: jivoo/jivoo
 /**
  * {@inheritdoc}
  */
 public function lastSelection(ReadSelectionBuilder $selection)
 {
     $resultSet = $this->readSelection($selection->reverseOrder()->limit(1));
     if (!$resultSet->hasRows()) {
         return null;
     }
     return $this->createExisting($resultSet->fetchAssoc(), $selection);
 }
コード例 #2
0
ファイル: ModelBase.php プロジェクト: jivoo/jivoo
 /**
  * {@inheritdoc}
  */
 public function offset($offset)
 {
     $select = new ReadSelectionBuilder($this);
     return $select->offset($offset);
 }