mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Merge pull request #293 from maxlapko/master
Change magic methods to getters
This commit is contained in:
		@ -26,8 +26,9 @@ class Toolbar extends Widget
 | 
			
		||||
			$url = Yii::$app->getUrlManager()->createUrl($this->debugAction, array(
 | 
			
		||||
				'tag' => Yii::getLogger()->tag,
 | 
			
		||||
			));
 | 
			
		||||
			$this->view->registerJs("yii.debug.load('$id', '$url');");
 | 
			
		||||
			$this->view->registerAssetBundle('yii/debug');
 | 
			
		||||
			$view = $this->getView();
 | 
			
		||||
			$view->registerJs("yii.debug.load('$id', '$url');");
 | 
			
		||||
			$view->registerAssetBundle('yii/debug');
 | 
			
		||||
			echo Html::tag('div', '', array(
 | 
			
		||||
				'id' => $id,
 | 
			
		||||
				'style' => 'display: none',
 | 
			
		||||
 | 
			
		||||
@ -122,7 +122,7 @@ class LinkPager extends Widget
 | 
			
		||||
	{
 | 
			
		||||
		$buttons = array();
 | 
			
		||||
 | 
			
		||||
		$pageCount = $this->pagination->pageCount;
 | 
			
		||||
		$pageCount = $this->pagination->getPageCount();
 | 
			
		||||
		$currentPage = $this->pagination->getPage();
 | 
			
		||||
 | 
			
		||||
		// first page
 | 
			
		||||
 | 
			
		||||
@ -63,7 +63,7 @@ class ListPager extends Widget
 | 
			
		||||
	 */
 | 
			
		||||
	public function run()
 | 
			
		||||
	{
 | 
			
		||||
		$pageCount = $this->pagination->pageCount;
 | 
			
		||||
		$pageCount = $this->pagination->getPageCount();
 | 
			
		||||
		$currentPage = $this->pagination->getPage();
 | 
			
		||||
 | 
			
		||||
		$pages = array();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user