/** * Generates an array of column names in the table that perists this class. This * list is then cached during the life of the request. * * @return array An array of column names */ function get_columns_in_table() { return SilkCache::get_instance()->call(array(&$this, '_get_columns_in_table'), $this->get_table()); }
/** * Gets the given site prefernce * * @since 0.6 */ public static function get_preference($prefname, $defaultvalue = '') { $value = $defaultvalue; if (count(self::$siteprefs) == 0) { self::$siteprefs = SilkCache::get_instance()->call('SilkCache::load_site_preferences'); } if (isset(self::$siteprefs[$prefname])) { $value = self::$siteprefs[$prefname]; } return $value; }