src/DB/TableWriter.php
public function modifyDataWhere( $data = array(), $where = array(), $debug = 1 )
	{
		$result		= FALSE;
		$conditions	= $this->getConditionQuery( $where, FALSE, FALSE );
		foreach( $this->fields as $field )
		{
			if( array_key_exists( $field, $data ) )
			{
				$value	= $this->secureValue( $data[$field], TRUE );
				$sets[]	= $field."='".$value."'";
			}
		}
		if( sizeof( $sets ) && $conditions )
		{
			$sets	= implode( ", ", $sets );
			$query	= "UPDATE ".$this->getTableName()." SET $sets WHERE ".$conditions;
			$result	= $this->dbc->Execute( $query, $debug );
		}
		return $result;
	}
public function modifyDataWhere( $data = array(), $where = array(), $debug = 1 )
	{
		$result		= FALSE;
		$conditions	= $this->getConditionQuery( $where, FALSE, FALSE );
		foreach( $this->fields as $field )
		{
			if( array_key_exists( $field, $data ) )
			{
				$value	= $this->secureValue( $data[$field], TRUE );
				$sets[]	= $field."='".$value."'";
			}
		}
		if( sizeof( $sets ) && $conditions )
		{
			$sets	= implode( ", ", $sets );
			$query	= "UPDATE ".$this->getTableName()." SET $sets WHERE ".$conditions;
			$result	= $this->dbc->Execute( $query, $debug );
		}
		return $result;
	}
public function modifyDataWhere ( $ data = array ( ) , $ where = array ( ) , $ debug = 1 ) { $ result = FALSE ; $ conditions = $ this -> getConditionQuery ( $ where , FALSE , FALSE ) ; foreach ( $ this -> fields as $ field ) { if ( array_key_exists ( $ field , $ data ) ) { $ value = $ this -> secureValue ( $ data [ $ field ] , TRUE ) ; $ sets [ ] = $ field . "='" . $ value . "'" ; } } if ( sizeof ( $ sets ) && $ conditions ) { $ sets = implode ( ", " , $ sets ) ; $ query = "UPDATE " . $ this -> getTableName ( ) . " SET $sets WHERE " . $ conditions ; $ result = $ this -> dbc -> Execute ( $ query , $ debug ) ; } return $ result ; }
Modifies data of unfocused id in table where conditions are given.
@access		public
@param		array	$data		associative Array of Data to store
@param		array	$where		associative Array of Condition Strings
@param		int		$debug		deBug Level (16:die after, 8:die before, 4:remark, 2:echo, 1:count[default])
@return		bool
Modifies data of unfocused id in table where conditions are given .