Ejemplo n.º 1
0
 /**
  * Constructor
  */
 function UserCache()
 {
     parent::DataObjectCache('User', false, 'T_users', 'user_', 'user_ID', NULL, '', T_('No user'));
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 function SkinCache()
 {
     parent::DataObjectCache('Skin', false, 'T_skins__skin', 'skin_', 'skin_ID', 'skin_name', NULL, T_('No skin'));
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  */
 function FileCache()
 {
     parent::DataObjectCache('File', false, 'T_files', 'file_', 'file_ID');
 }
Ejemplo n.º 6
0
 /**
  * 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);
 }
Ejemplo n.º 7
0
 /**
  * Constructor
  */
 function BlogCache()
 {
     parent::DataObjectCache('Blog', false, 'T_blogs', 'blog_', 'blog_ID', NULL, '', T_('No blog'), 0);
 }
Ejemplo n.º 8
0
 /**
  * Constructor
  */
 function FiletypeCache()
 {
     // Call parent constructor:
     parent::DataObjectCache('Filetype', true, 'T_filetypes', 'ftyp_', 'ftyp_ID', 'ftyp_extensions');
 }
Ejemplo n.º 9
0
 /**
  * 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;
 }
Ejemplo n.º 10
0
 /**
  * Constructor
  */
 function LinkCache()
 {
     parent::DataObjectCache('Link', false, 'T_links', 'link_', 'link_ID');
 }
Ejemplo n.º 11
0
 /**
  * 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);
 }
Ejemplo n.º 12
0
 /**
  * Constructor
  *
  * @param table Database row
  */
 function ItemTypeCache()
 {
     // Call parent constructor:
     parent::DataObjectCache('ItemType', true, 'T_items__type', 'ptyp_', 'ptyp_ID', 'ptyp_name', 'ptyp_ID');
 }
Ejemplo n.º 13
0
 /**
  * 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';
 }
Ejemplo n.º 14
0
 /**
  * Constructor
  */
 function WidgetCache()
 {
     parent::DataObjectCache('ComponentWidget', false, 'T_widget', 'wi_', 'wi_ID', NULL, NULL, NULL);
 }
Ejemplo n.º 15
0
 /**
  * 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);
 }