sphinx\ActiveQuery snippetByModel()

snippetByModel() public method Sets the snippetCallback() to fetchSnippetSourceFromModels(), which allows to fetch the snippet source strings from the Active Record models, using method yii\sphinx\ActiveRecord::getSnippetSource(). For example: class Article extends ActiveRecord { public function getSnippetSource() { return file_get_contents('/path/to/source/files/' . $this->id . '.txt');; } } $articles = Article::find()->snippetByModel()->all(); Warning: this

db\mssql\Schema findColumns()

findColumns() protected method Collects the metadata of table columns. protected boolean findColumns ( $table )$table yii\db\mssql\TableSchema The table metadata return boolean Whether the table exists in the database

jui\Selectable $items

$items public property List of selectable items. Each item can be a string representing the item content or an array of the following structure: [ 'content' => 'item content', // the HTML attributes of the item container tag. This will overwrite "itemOptions". 'options' => [], ] public array $items = []

authclient\QQ defaultViewOptions()

defaultViewOptions() protected method Returns the default $viewOptions value. Particular client may override this method in order to provide specific default view options. protected array defaultViewOptions ( )return array List of default $viewOptions

widgets\ActiveField fileInput()

fileInput() public method Renders a file input. This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this fileInput ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). If you set a custom id for the input element, you may need to adju

web\User $absoluteAuthTimeoutParam

$absoluteAuthTimeoutParam public property The session variable name used to store the value of absolute expiration timestamp of the authenticated state. This is used when $absoluteAuthTimeout is set. public string $absoluteAuthTimeoutParam = '__absoluteExpire'

sphinx\ActiveRecord callSnippets()

callSnippets() public static method Builds a snippet from provided data and query, using specified index settings. public static string|array callSnippets ( $source, $match, $options = [] )$source string|array Is the source data to extract a snippet from. It could be either a single string or array of strings. $match string The full-text query to build snippets for. $options array List of options in format: optionName => optionValue return string|array Built snippet in case

validators\DateValidator $locale

$locale public property The locale ID that is used to localize the date parsing. This is only effective when the PHP intl extension is installed. If not set, the locale of the formatter will be used. See also yii\i18n\Formatter::$locale. public string $locale = null

authclient\Weibo init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

caching\TagDependency invalidate()

invalidate() public static method Invalidates all of the cached data items that are associated with any of the specified $tags. public static void invalidate ( $cache, $tags )$cache yii\caching\Cache The cache component that caches the data items $tags string|array