common/services/traits/resources/DataTrait.php
public function getDataMeta( $model, $key, $assoc = false ) {

		$object	= $model->generateDataObjectFromJson( $assoc );
		$meta	= new Meta();

		if( isset( $object->$key ) ) {

			$meta->key		= $key;
			$meta->value	= $object->$key;

			return $meta;
		}

		return false;
	}
public function getDataMeta( $model, $key, $assoc = false ) {

		$object	= $model->generateDataObjectFromJson( $assoc );
		$meta	= new Meta();

		if( isset( $object->$key ) ) {

			$meta->key		= $key;
			$meta->value	= $object->$key;

			return $meta;
		}

		return false;
	}
public function getDataMeta ( $ model , $ key , $ assoc = false ) { $ object = $ model -> generateDataObjectFromJson ( $ assoc ) ; $ meta = new Meta ( ) ; if ( isset ( $ object -> $ key ) ) { $ meta -> key = $ key ; $ meta -> value = $ object -> $ key ; return $ meta ; } return false ; }
Returns the Meta object using given key from data object.

@param \cmsgears\core\common\models\base\ActiveRecord $model
@param string $key
@param boolean $assoc
@return boolean|\cmsgears\core\common\models\forms\Meta
Returns the Meta object using given key from data object .