protected function _getSchema($model = null) {
		$result = null;
		if (empty($model)) {
			return $result;
		}

		$modelObj = ClassRegistry::init($model, true);
		if ($modelObj === false) {
			return $result;
		}

		$result = $modelObj->schema();
		if (empty($modelObj->virtualFields)) {
			return $result;
		}

		foreach ($modelObj->virtualFields as $virtualFieldName => $virtualFieldVal) {
			$result[$virtualFieldName] = ['type' => 'string'];
		}

		return $result;
	}
protected function _getSchema($model = null) {
		$result = null;
		if (empty($model)) {
			return $result;
		}

		$modelObj = ClassRegistry::init($model, true);
		if ($modelObj === false) {
			return $result;
		}

		$result = $modelObj->schema();
		if (empty($modelObj->virtualFields)) {
			return $result;
		}

		foreach ($modelObj->virtualFields as $virtualFieldName => $virtualFieldVal) {
			$result[$virtualFieldName] = ['type' => 'string'];
		}

		return $result;
	}
protected function _getSchema ( $ model = null ) { $ result = null ; if ( empty ( $ model ) ) { return $ result ; } $ modelObj = ClassRegistry :: init ( $ model , true ) ; if ( $ modelObj === false ) { return $ result ; } $ result = $ modelObj -> schema ( ) ; if ( empty ( $ modelObj -> virtualFields ) ) { return $ result ; } foreach ( $ modelObj -> virtualFields as $ virtualFieldName => $ virtualFieldVal ) { $ result [ $ virtualFieldName ] = [ 'type' => 'string' ] ; } return $ result ; }
Return schema for model.

@param string $model Name of model for return schema.
@return array|null Array of schema, or null on failure.
Return schema for model .