PagesController::_setAdminIndexViewData PHP Method

_setAdminIndexViewData() protected method

一覧の表示用データをセットする
protected _setAdminIndexViewData ( ) : void
return void
    protected function _setAdminIndexViewData()
    {
        $user = $this->BcAuth->user();
        $allowOwners = array();
        if (!empty($user)) {
            $allowOwners = array('', $user['user_group_id']);
        }
        if (!isset($this->passedArgs['sortmode'])) {
            $this->passedArgs['sortmode'] = false;
        }
        $this->set('users', $this->Page->getControlSource('user_id'));
        $this->set('allowOwners', $allowOwners);
        $this->set('sortmode', $this->passedArgs['sortmode']);
    }