Prado\Collections\TPagedDataSource::setAllowPaging PHP Method

setAllowPaging() public method

public setAllowPaging ( $value )
    public function setAllowPaging($value)
    {
        $this->_allowPaging = TPropertyValue::ensureBoolean($value);
    }

Usage Example

コード例 #1
0
ファイル: TDataBoundControl.php プロジェクト: pradosoft/prado
 /**
  * @return TPagedDataSource creates a paged data source
  */
 protected function createPagedDataSource()
 {
     $ds = new TPagedDataSource();
     $ds->setCurrentPageIndex($this->getCurrentPageIndex());
     $ds->setPageSize($this->getPageSize());
     $ds->setAllowPaging($this->getAllowPaging());
     $ds->setAllowCustomPaging($this->getAllowCustomPaging());
     $ds->setVirtualItemCount($this->getVirtualItemCount());
     return $ds;
 }