addColumn('no', 'no') ->addColumn('text', 'firstName', array('orderBy' => 'firstName')) ->addColumn('text', 'lastName', array('orderBy' => 'lastName')) ->addColumn('text', 'login', array('orderBy' => 'login')) ->addColumn('email', 'email', array('orderBy' => 'email')) ->addOptionsColumn(); return $this; } public function addOptionsColumn() { $options = array( 'actions' => array( 'edit' => array(), 'delete' => array(), ) ); if (Qs_ViewController_Log::getEnabled()) { $logBaseUrl = Qs_SiteMap::findFirst(null, array('type' => 'ViewControllerLog_Admin_'), null, 'url'); if ($logBaseUrl) { $options['actions']['viewLog'] = array( 'formattedLink' => $logBaseUrl . '/admin?roleId=%d', 'linkTitle' => "View this Administrator's Log" ); } } $this->addColumn('options', 'options', $options); return $this; } }