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
파일 보기 프로젝트 열기: pantheon-systems/terminus

공개 프로퍼티들

프로퍼티 타입 설명
$session Pantheon\Terminus\Session\Session

보호된 프로퍼티들

프로퍼티 타입 설명
$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