/** * Constructor */ function UserCache() { parent::DataObjectCache('User', false, 'T_users', 'user_', 'user_ID', NULL, '', T_('No user')); }
/** * Constructor * * @param string object type of elements in Cache * @param string Name of the DB table * @param string Prefix of fields in the table * @param string Name of the ID field (including prefix) */ function CommentCache($objType = 'Comment', $dbtablename = 'T_comments', $dbprefix = 'comment_', $dbIDname = 'comment_ID') { parent::DataObjectCache($objType, false, $dbtablename, $dbprefix, $dbIDname); }
/** * Constructor */ function SkinCache() { parent::DataObjectCache('Skin', false, 'T_skins__skin', 'skin_', 'skin_ID', 'skin_name', NULL, T_('No skin')); }
/** * Constructor * * @param string object type of elements in Cache * @param string Name of the DB table * @param string Prefix of fields in the table * @param string Name of the ID field (including prefix) */ function ItemCache($objType = 'Item', $dbtablename = 'T_items__item', $dbprefix = 'post_', $dbIDname = 'post_ID') { parent::DataObjectCache($objType, false, $dbtablename, $dbprefix, $dbIDname); }
/** * Constructor */ function FileCache() { parent::DataObjectCache('File', false, 'T_files', 'file_', 'file_ID'); }
/** * Constructor * * @param string Name of the order field or NULL to use name field */ function BlogCache($order_by = 'blog_order') { parent::DataObjectCache('Blog', false, 'T_blogs', 'blog_', 'blog_ID', NULL, $order_by, NT_('No blog'), 0); }
/** * Constructor */ function BlogCache() { parent::DataObjectCache('Blog', false, 'T_blogs', 'blog_', 'blog_ID', NULL, '', T_('No blog'), 0); }
/** * Constructor */ function FiletypeCache() { // Call parent constructor: parent::DataObjectCache('Filetype', true, 'T_filetypes', 'ftyp_', 'ftyp_ID', 'ftyp_extensions'); }
/** * Constructor * * @param boolean Load enabled widgets only? */ function WidgetCache($enabled_only = false) { parent::DataObjectCache('ComponentWidget', false, 'T_widget', 'wi_', 'wi_ID', NULL, NULL, NULL); $this->load_enabled_only = $enabled_only; }
/** * Constructor */ function LinkCache() { parent::DataObjectCache('Link', false, 'T_links', 'link_', 'link_ID'); }
/** * Constructor * * @param string object type of elements in Cache * @param string Name of the DB table * @param string Prefix of fields in the table * @param string Name of the ID field (including prefix) */ function IPRangeCache($objType = 'IPRange', $dbtablename = 'T_antispam__iprange', $dbprefix = 'aipr_', $dbIDname = 'aipr_ID') { parent::DataObjectCache($objType, false, $dbtablename, $dbprefix, $dbIDname); }
/** * Constructor * * @param table Database row */ function ItemTypeCache() { // Call parent constructor: parent::DataObjectCache('ItemType', true, 'T_items__type', 'ptyp_', 'ptyp_ID', 'ptyp_name', 'ptyp_ID'); }
/** * Constructor */ function ChapterCache() { parent::DataObjectCache('Chapter', false, 'T_categories', 'cat_', 'cat_ID', 'cat_name'); // This is the property by which we will filter out subsets, for exampel 'blog_ID' if we want to only load a specific collection: $this->subset_property = 'blog_ID'; }
/** * Constructor */ function WidgetCache() { parent::DataObjectCache('ComponentWidget', false, 'T_widget', 'wi_', 'wi_ID', NULL, NULL, NULL); }
/** * Constructor */ function GenericCache($objtype, $load_all, $tablename, $prefix = '', $dbIDname = 'ID', $name_field = NULL, $order_by = '', $allow_none_text = NULL) { parent::DataObjectCache($objtype, $load_all, $tablename, $prefix, $dbIDname, $name_field, $order_by, $allow_none_text); }