PagerModule::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $Sender = '' )
$Sender string
    public function __construct($Sender = '')
    {
        $this->ClientID = 'Pager';
        $this->CssClass = 'Pager';
        $this->Offset = 0;
        $this->Limit = self::$DefaultPageSize;
        $this->TotalRecords = false;
        $this->Wrapper = '<div class="PagerWrap"><div %1$s>%2$s</div></div>';
        $this->PagerEmpty = '';
        $this->MoreCode = '»';
        $this->LessCode = '«';
        $this->Url = '/controller/action/$s/';
        $this->_PropertiesDefined = false;
        $this->_Totalled = false;
        $this->_LastOffset = 0;
        parent::__construct($Sender);
    }

Usage Example

Пример #1
0
 /**
  *
  *
  * @param string $Sender
  */
 public function __construct($Sender = '')
 {
     parent::__construct($Sender);
     $this->ClientID = '';
     $this->CssClass = 'MorePager Foot';
     $this->Offset = 0;
     $this->Limit = 30;
     $this->TotalRecords = 0;
     $this->Wrapper = '<div %1$s>%2$s</div>';
     $this->PagerEmpty = '';
     $this->MoreCode = 'More';
     $this->LessCode = 'Newer';
     $this->Url = '/controller/action/{Page}/';
     $this->_PropertiesDefined = false;
     $this->_Totalled = false;
     $this->_LastOffset = 0;
 }