common/models/base/Meta.php
public static function updateByNameType( $modelId, $name, $type, $value ) {

		$meta = self::findByNameType( $modelId, $name, $type );

		if( isset( $meta ) ) {

			$meta->value = $value;

			return $meta->update();
		}

		return false;
	}
public static function updateByNameType( $modelId, $name, $type, $value ) {

		$meta = self::findByNameType( $modelId, $name, $type );

		if( isset( $meta ) ) {

			$meta->value = $value;

			return $meta->update();
		}

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

@param integer $modelId Parent Id.
@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 name type .