common/models/resources/ModelMeta.php
public static function updateByNameType( $parentId, $parentType, $name, $type, $value, $config = [] ) {

		$meta = self::findByNameType( $parentId, $parentType, $name, $type, $value, $config );

		if( isset( $meta ) ) {

			$meta->value = $value;

			return $meta->update();
		}

		return false;
	}
public static function updateByNameType( $parentId, $parentType, $name, $type, $value, $config = [] ) {

		$meta = self::findByNameType( $parentId, $parentType, $name, $type, $value, $config );

		if( isset( $meta ) ) {

			$meta->value = $value;

			return $meta->update();
		}

		return false;
	}
public static function updateByNameType ( $ parentId , $ parentType , $ name , $ type , $ value , $ config = [ ] ) { $ meta = self :: findByNameType ( $ parentId , $ parentType , $ name , $ type , $ value , $ config ) ; if ( isset ( $ meta ) ) { $ meta -> value = $ value ; return $ meta -> update ( ) ; } return false ; }
Update the meta value for given parent id, parent type, name and type.

@param integer $parentId
@param string $parentType
@param string $name
@param string $type
@param type $value
@return int|false either 1 or false if meta not found or validation fails.
Update the meta value for given parent id parent type name and type .