/** * Load profile fields. * Overwrite this method to get another set of fields * @since 0.6 * @return array of YumProfileFields or empty array */ public function loadProfileFields() { if (self::$fields === null) { self::$fields = YumProfileField::model()->cache(3600)->findAll(); if (self::$fields == null) { self::$fields = array(); } } return self::$fields; }