/** * Get all categories to this user * * @return RDR_Category[] */ public function getCategories() { if (self::$_cache === null) { self::$_cache = RDR_Category::getByCondition(db()->quote("user") . " = {0}", array($this), "+name"); } return self::$_cache; }