addColumn('no', 'no'); $this->addColumn('date', 'date', array('orderBy' => 'date')); $this->addColumn('text', 'author', array('orderBy' => 'author')); $this->addColumn('text', 'title', array('orderBy' => 'title')); $url = \Qs_SiteMap::findFirst(null, array('type' => 'Blog\\Category\\Admin\\'), null, 'url'); $this->addColumn('category', 'category', array('orderBy' => 'categoryTitle', 'categoryUrl' => $url)); $this->addColumn( 'link_enum', 'featured', array( 'orderBy' => 'featured', 'values' => array('y' => 'Yes', 'n' => 'No') ) ); $url = \Qs_SiteMap::findFirst(null, array('type' => 'Blog\\Tag\\Admin\\'), null, 'url'); $this->addColumn('linkTags', 'tags', array('baseUrl' => $url)); $url = \Qs_SiteMap::findFirst(null, array('type' => 'Blog\\Comment\\Admin\\'), null, 'url'); $this->addColumn('linkComments', 'comments', array('baseUrl' => $url)); $this->addColumn('link_enum', 'enabled', array('title' => 'Show', 'orderBy' => 'enabled')); $this->addColumn('options', 'options'); return $this; } }