PHP Класс Pantheon\Terminus\Collections\SavedTokens

Наследование: extends TerminusCollection, implements Robo\Contract\ConfigAwareInterface, implements Pantheon\Terminus\DataStore\DataStoreAwareInterface, use trait Robo\Common\ConfigAwareTrait, use trait Pantheon\Terminus\DataStore\DataStoreAwareTrait
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$session Pantheon\Terminus\Session\Session

Защищенные свойства (Protected)

Свойство Тип Описание
$collected_class string

Открытые методы

Метод Описание
__construct ( $options = [] )
add ( object $model_data, array $options = [] ) : TerminusModel Adds a model to this collection
create ( $token_string ) Saves a machine token to the tokens directory and logs the user in
deleteAll ( ) Delete all of the saved tokens.
get ( string $id ) : SavedToken Retrieves the model with site of the given email or machine token

Защищенные методы

Метод Описание
getCollectionData ( $options = [] )

Описание методов

__construct() публичный метод

public __construct ( $options = [] )

add() публичный метод

Adds a model to this collection
public add ( object $model_data, array $options = [] ) : TerminusModel
$model_data object Data to feed into attributes of new model
$options array Data to make properties of the new model
Результат TerminusModel

create() публичный метод

Saves a machine token to the tokens directory and logs the user in
public create ( $token_string )

deleteAll() публичный метод

Delete all of the saved tokens.
public deleteAll ( )

get() публичный метод

Retrieves the model with site of the given email or machine token
public get ( string $id ) : SavedToken
$id string Email or machine token to look up a saved token by
Результат Pantheon\Terminus\Models\SavedToken

getCollectionData() защищенный метод

protected getCollectionData ( $options = [] )

Описание свойств

$collected_class защищенное свойство

protected string $collected_class
Результат string

$session публичное свойство

public Session,Pantheon\Terminus\Session $session
Результат Pantheon\Terminus\Session\Session