samples/PhotoAlbum/lib/rb.php
public function addColumn( $type, $column, $field ) {
		$table = $type;
		$type = $field;
		$table = $this->safeTable($table);
		$column = $this->safeColumn($column);
		$type = array_key_exists($type, $this->typeno_sqltype) ? $this->typeno_sqltype[$type] : '';
		$sql = "ALTER TABLE $table ADD COLUMN $column $type ";
		$this->adapter->exec( $sql );
	}
public function addColumn( $type, $column, $field ) {
		$table = $type;
		$type = $field;
		$table = $this->safeTable($table);
		$column = $this->safeColumn($column);
		$type = array_key_exists($type, $this->typeno_sqltype) ? $this->typeno_sqltype[$type] : '';
		$sql = "ALTER TABLE $table ADD COLUMN $column $type ";
		$this->adapter->exec( $sql );
	}
public function addColumn ( $ type , $ column , $ field ) { $ table = $ type ; $ type = $ field ; $ table = $ this -> safeTable ( $ table ) ; $ column = $ this -> safeColumn ( $ column ) ; $ type = array_key_exists ( $ type , $ this -> typeno_sqltype ) ? $ this -> typeno_sqltype [ $ type ] : '' ; $ sql = "ALTER TABLE $table ADD COLUMN $column $type " ; $ this -> adapter -> exec ( $ sql ) ; }
This method adds a column to a table.
This methods accepts a type and infers the corresponding table name.

@param string  $type   name of the table
@param string  $column name of the column
@param integer $field  data type for field

@return void
This method adds a column to a table . This methods accepts a type and infers the corresponding table name .