* QuickSort compare method. * returns true if $this has higher priority than $postB * * criteria: date_submission, date_expired, severity * * @param BlogPost $postB the object to compare to * * @return 1 if $postB higher priority, -1 if lower, 0 if equal */ public function compare($postA, $postB) { // TODO return 0; } } BlogPost::staticInit(); class BlogManager { private $categoryList; private $severityList; public function __construct() { } /** * available categories are stored in codev_config_table. * @return string[] (id => name) */ public function getCategoryList() { if (NULL == $this->categoryList) { $this->categoryList = Config::getValue(Config::id_blogCategories);