common/models/resources/ModelMessage.php
public static function findByNameTypeLocaleId( $parentId, $parentType, $name, $type, $localeId ) {

		return self::find()->where( 'parentId=:pid AND parentType=:ptype AND name=:name AND type=:type AND localeId=:lid' )
			->addParams( [ ':pid' => $parentId, ':ptype' => $parentType, ':name' => $name, ':type' => $type, ':lid' => $localeId ] )
			->one();
	}
public static function findByNameTypeLocaleId( $parentId, $parentType, $name, $type, $localeId ) {

		return self::find()->where( 'parentId=:pid AND parentType=:ptype AND name=:name AND type=:type AND localeId=:lid' )
			->addParams( [ ':pid' => $parentId, ':ptype' => $parentType, ':name' => $name, ':type' => $type, ':lid' => $localeId ] )
			->one();
	}
public static function findByNameTypeLocaleId ( $ parentId , $ parentType , $ name , $ type , $ localeId ) { return self :: find ( ) -> where ( 'parentId=:pid AND parentType=:ptype AND name=:name AND type=:type AND localeId=:lid' ) -> addParams ( [ ':pid' => $ parentId , ':ptype' => $ parentType , ':name' => $ name , ':type' => $ type , ':lid' => $ localeId ] ) -> one ( ) ; }
Find and return the message specific to given name, type and locale id.

@param integer $parentId
@param string $parentType
@param string $name
@param string $type
@param int $localeId
@return ModelMessage by name, type and locale id
Find and return the message specific to given name type and locale id .