protected function _getModelInfoFromField($field = null, $plugin = null) {
		$result = false;
		if (empty($field) || !is_string($field)) {
			return $result;
		}

		if (strpos($field, '.') === false) {
			return $result;
		}

		list($modelName, $fieldName) = pluginSplit($field);
		if (!empty($plugin)) {
			$modelName = $plugin . '.' . $modelName;
		}
		$modelObj = ClassRegistry::init($modelName, true);
		if ($modelObj === false) {
			return false;
		}

		$fieldFullName = $modelObj->alias . '.' . $fieldName;
		$result = compact('modelName', 'fieldName', 'fieldFullName');

		return $result;
	}
protected function _getModelInfoFromField($field = null, $plugin = null) {
		$result = false;
		if (empty($field) || !is_string($field)) {
			return $result;
		}

		if (strpos($field, '.') === false) {
			return $result;
		}

		list($modelName, $fieldName) = pluginSplit($field);
		if (!empty($plugin)) {
			$modelName = $plugin . '.' . $modelName;
		}
		$modelObj = ClassRegistry::init($modelName, true);
		if ($modelObj === false) {
			return false;
		}

		$fieldFullName = $modelObj->alias . '.' . $fieldName;
		$result = compact('modelName', 'fieldName', 'fieldFullName');

		return $result;
	}
protected function _getModelInfoFromField ( $ field = null , $ plugin = null ) { $ result = false ; if ( empty ( $ field ) || ! is_string ( $ field ) ) { return $ result ; } if ( strpos ( $ field , '.' ) === false ) { return $ result ; } list ( $ modelName , $ fieldName ) = pluginSplit ( $ field ) ; if ( ! empty ( $ plugin ) ) { $ modelName = $ plugin . '.' . $ modelName ; } $ modelObj = ClassRegistry :: init ( $ modelName , true ) ; if ( $ modelObj === false ) { return false ; } $ fieldFullName = $ modelObj -> alias . '.' . $ fieldName ; $ result = compact ( 'modelName' , 'fieldName' , 'fieldFullName' ) ; return $ result ; }
Return information of model from field name

@param string $field Field name
@param string $plugin Name of plugin for target model of filter.
@return array|bool Array information of model in format:
- key `modelName`, value - name of model;
- key `fieldName`, value - name of field;
- key `fieldFullName`, value - name of field include name of model.
Return False on failure.
Return information of model from field name