src/libraries/adapters/DatabaseMySql.php
/**
    * Create a resource map
    *
    * @param string $id resource map to be retrieved
    * @param array $params Attributes to create
    * @return mixed Array on success, FALSE on failure
    */
Create a resource map
@param string $id resource map to be retrieved
@param array $params Attributes to create
@return mixed Array on success, FALSE on failure
Create a resource map @param string $id resource map to be retrieved @param array $params Attributes to create @return mixed Array on success FALSE on failure
public function putResourceMap($id, $params)
  {
    if(!isset($params['id']))
      $params['id'] = $id;
    $params['owner'] = $this->owner;
    $params = $this->prepareResourceMap($params);
    $stmt = $this->sqlInsertExplode($params);
    $result = $this->db->execute("INSERT INTO `{$this->mySqlTablePrefix}resourceMap` ({$stmt['cols']}) VALUES ({$stmt['vals']})");
    return  ($result !== false);
  }
public function putResourceMap ( $ id , $ params ) { if ( ! isset ( $ params [ 'id' ] ) ) $ params [ 'id' ] = $ id ; $ params [ 'owner' ] = $ this -> owner ; $ params = $ this -> prepareResourceMap ( $ params ) ; $ stmt = $ this -> sqlInsertExplode ( $ params ) ; $ result = $ this -> db -> execute ( " INSERT INTO ` { $ this -> mySqlTablePrefix } resourceMap` ( { $ stmt [ 'cols' ] } ) VALUES ( { $ stmt [ 'vals' ] } ) " ) ; return ( $ result !== false ) ; }
Create a resource map
 @param string $id resource map to be retrieved
 @param array $params Attributes to create
 @return mixed Array on success, FALSE on failure
Create a resource map @param string $id resource map to be retrieved @param array $params Attributes to create @return mixed Array on success FALSE on failure