Example #1
0
 /**
  * _updateWhere
  */
 protected static function _updateWhere($table, $query, $fields = array())
 {
     // Find record to delete
     $xml_arr = Table::_selectOne($table, $query);
     // If its exists then delete it
     if (count($fields) !== 0) {
         foreach ($fields as $key => $value) {
             $xml_arr->{$key} = XML::safe($value, false);
         }
     }
     // Save table
     Table::_save($table);
 }