Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 /**
  * Overloaded check method to ensure data integrity
  *
  * @access public
  * @return boolean True on success
  */
 public function check()
 {
     // Make sure the parent_id doesn't match the id
     if ($this->id > 0 && $this->id == $this->parent_id) {
         $this->_error = JText::_('Category can not be its own parent');
         return false;
     }
     return parent::check();
 }
Ejemplo n.º 4
0
 /**
  * Bind method
  *
  * @access public
  * @subpackage Yireo
  * @param array $array
  * @param string $ignore
  * @return null
  * @see JTable:bind
  */
 public function bind($array, $ignore = '')
 {
     // Convert the actions array to a flat string
     if (key_exists('actions', $array) && is_array($array['actions'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['actions']);
         $array['actions'] = $registry->toString();
     }
     return parent::bind($array, $ignore);
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  *
  * @param JDatabase $db
  * @return null
  */
 public function __construct(&$db)
 {
     parent::__construct('#__magebridge_urls', 'id', $db);
 }