예제 #1
0
 /**
  * Bind function
  *
  * @acces public
  * @param array $hash named array
  * @return null|string	null is operation was satisfactory, otherwise returns an error
  * @see JTable:bind
  */
 public function bind($array, $ignore = '')
 {
     if (key_exists('params', $array) && is_array($array['params'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['params']);
         $array['params'] = $registry->toString('ini');
     }
     return parent::bind($array, $ignore);
 }
 /**
  * extends bind to include class params (non-PHPdoc)
  * @see administrator/components/com_joomleague/tables/JLTable#bind($array, $ignore)
  */
 function bind($array, $ignore = '')
 {
     if (key_exists('baseparams', $array) && is_array($array['baseparams'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['baseparams']);
         $array['baseparams'] = (string) $registry;
     }
     if (key_exists('params', $array) && is_array($array['params'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['params']);
         $array['params'] = (string) $registry;
     }
     return parent::bind($array, $ignore);
 }
예제 #3
0
 /**
  * Overloaded bind function
  *
  * @acces public
  * @param array $hash named array
  * @return null|string	null is operation was satisfactory, otherwise returns an error
  * @see JTable:bind
  * @since 1.5
  */
 public function bind($array, $ignore = '')
 {
     if (key_exists('params', $array) && is_array($array['params'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['params']);
         $array['params'] = $registry->toString();
     }
     if (key_exists('comp_params', $array) && is_array($array['comp_params'])) {
         $registry = new JRegistry();
         $registry->loadArray($array['comp_params']);
         $array['comp_params'] = $registry->toString();
     }
     //print_r( $array );exit;
     return parent::bind($array, $ignore);
 }