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 (($logBaseUrl = Qs_SiteMap::findFirst(null, array('type' => 'ViewControllerLog_Admin_'), null, 'url'))) { $options['actions']['viewLog'] = array( 'formattedLink' => $logBaseUrl . '/admin?roleId={id}', 'linkTitle' => "View this Administrator's Log" ); } $this->addColumn('options', 'options', $options); return $this; } }