Exemplo n.º 1
0
 /**
  * public function to insert/update store role info table
  *
  * @param   MIXED  $data  array of fields for store role
  * table array('store_id' => '2','user_id' => '423','role' => 'manager'); if 'id' is in array then update on id else insert
  *
  * @return  boolean
  */
 public function saveStoreRole($data)
 {
     JLoader::import('store', JPATH_SITE . '/components/com_quick2cart/models');
     $model = new Quick2cartModelstore();
     $result = $model->saveStoreRole($data);
     return $result;
 }