Пример #1
0
 /**
  * Constructor
  *
  * @param JDatabase $db
  * @return null
  */
 public function __construct(&$db)
 {
     // List of required fields that can not be left empty
     $this->required = array('joomla_group', 'magento_group');
     // Call the constructor
     parent::__construct('#__magebridge_usergroups', 'id', $db);
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param object Database connector object
  */
 public function __construct(&$db)
 {
     // @todo: Extra field "approved"
     // Initialize the fields
     $this->_fields = array('id' => null, 'title' => null, 'alias' => null, 'link' => null, 'link_type' => null, 'text' => null, 'picture' => null, 'hits' => null);
     parent::__construct('#__simplelists_items', 'id', $db);
 }
Пример #3
0
 /**
  * Constructor
  *
  * @param object Database connector object
  */
 public function __construct(&$db)
 {
     // Initialize the default values
     if (YireoHelper::isJoomla15()) {
         $this->_defaults = array('section' => 'com_simplelists');
     } else {
         $this->_defaults = array('extension' => 'com_simplelists', 'level' => 1);
     }
     // Set the required fields
     $this->_required = array('title');
     parent::__construct('#__categories', 'id', $db);
 }
Пример #4
0
 /**
  * Constructor
  *
  * @param JDatabase $db
  * @return null
  */
 public function __construct(&$db)
 {
     parent::__construct('#__magebridge_urls', 'id', $db);
 }
Пример #5
0
 /**
  * Constructor
  *
  * @param JDatabase $db
  * @return null
  */
 public function __construct(&$db)
 {
     $this->_required = array('sku');
     parent::__construct('#__magebridge_products', 'id', $db);
 }