Model/Datasource/ArraySource.php
public function name($data) {
		if (is_object($data) && isset($data->type)) {
			return $data->value;
		}
		if ($data === '*') {
			return '*';
		}
		if (is_array($data)) {
			foreach ($data as $i => $dataItem) {
				$data[$i] = $this->name($dataItem);
			}
			return $data;
		}
		return (string)$data;
	}
public function name($data) {
		if (is_object($data) && isset($data->type)) {
			return $data->value;
		}
		if ($data === '*') {
			return '*';
		}
		if (is_array($data)) {
			foreach ($data as $i => $dataItem) {
				$data[$i] = $this->name($dataItem);
			}
			return $data;
		}
		return (string)$data;
	}
public function name ( $ data ) { if ( is_object ( $ data ) && isset ( $ data -> type ) ) { return $ data -> value ; } if ( $ data === '*' ) { return '*' ; } if ( is_array ( $ data ) ) { foreach ( $ data as $ i => $ dataItem ) { $ data [ $ i ] = $ this -> name ( $ dataItem ) ; } return $ data ; } return ( string ) $ data ; }
Imitation of DboSource method.
@param mixed $data Either a string with a column to quote. An array of columns
to quote.
@return string SQL field
Imitation of DboSource method .