sphinx\ActiveRecord getSnippetSource()

getSnippetSource() public method

Returns the string, which should be used as a source to create snippet for this Active Record instance.

Child classes must implement this method to return the actual snippet source text. For example:

public function getSnippetSource()
{
    return $this->snippetSourceRelation->content;
}
public string getSnippetSource ( )
return string

Snippet source string.

throws yii\base\NotSupportedException

if this is not supported by the Active Record class

doc_Yii
2016-10-30 17:11:37
Comments
Leave a Comment

Please login to continue.