PHP 클래스 Phalcon\Mvc\Model\EagerLoading\Loader

파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$eagerLoads array
$mustReturnAModel boolean
$subject Phalcon\Mvc\ModelInterface[]
$subjectClassName string

공개 메소드들

메소드 설명
__construct ( Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple $from )
addEagerLoad ( string $relationAlias, null | callable $constraints = null )
execute ( )
from ( Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple $subject ) : mixed Create and get from a mixed $subject
fromArray ( array $subject ) : array Create and get from an array
fromModel ( Phalcon\Mvc\ModelInterface $subject ) : Phalcon\Mvc\ModelInterface Create and get from a Model
fromResultset ( Phalcon\Mvc\Model\Resultset\Simple $subject ) : Phalcon\Mvc\Model\Resultset\Simple Create and get from a Resultset
get ( ) : null | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\ModelInterface
getSubject ( ) : null | Phalcon\Mvc\ModelInterface[]
load ( ) Loader::execute() alias

비공개 메소드들

메소드 설명
buildTree ( ) : Phalcon\Mvc\Model\EagerLoading\EagerLoad[] Resolves the relations
parseArguments ( array $arguments ) : array Parses the arguments that will be resolved to Relation instances

메소드 상세

__construct() 공개 메소드

public __construct ( Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple $from )
$from Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple

addEagerLoad() 공개 메소드

public addEagerLoad ( string $relationAlias, null | callable $constraints = null )
$relationAlias string
$constraints null | callable

execute() 공개 메소드

public execute ( )

from() 공개 정적인 메소드

Create and get from a mixed $subject
public static from ( Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple $subject ) : mixed
$subject Phalcon\Mvc\ModelInterface | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\Model\Resultset\Simple
리턴 mixed

fromArray() 공개 정적인 메소드

Create and get from an array
public static fromArray ( array $subject ) : array
$subject array
리턴 array

fromModel() 공개 정적인 메소드

Create and get from a Model
public static fromModel ( Phalcon\Mvc\ModelInterface $subject ) : Phalcon\Mvc\ModelInterface
$subject Phalcon\Mvc\ModelInterface
리턴 Phalcon\Mvc\ModelInterface

fromResultset() 공개 정적인 메소드

Create and get from a Resultset
public static fromResultset ( Phalcon\Mvc\Model\Resultset\Simple $subject ) : Phalcon\Mvc\Model\Resultset\Simple
$subject Phalcon\Mvc\Model\Resultset\Simple
리턴 Phalcon\Mvc\Model\Resultset\Simple

get() 공개 메소드

public get ( ) : null | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\ModelInterface
리턴 null | Phalcon\Mvc\ModelInterface[] | Phalcon\Mvc\ModelInterface

getSubject() 공개 메소드

public getSubject ( ) : null | Phalcon\Mvc\ModelInterface[]
리턴 null | Phalcon\Mvc\ModelInterface[]

load() 공개 메소드

Loader::execute() alias
public load ( )

프로퍼티 상세

$eagerLoads 보호되어 있는 프로퍼티

protected array $eagerLoads
리턴 array

$mustReturnAModel 보호되어 있는 프로퍼티

protected bool $mustReturnAModel
리턴 boolean

$subject 보호되어 있는 프로퍼티

protected ModelInterface[],Phalcon\Mvc $subject
리턴 Phalcon\Mvc\ModelInterface[]

$subjectClassName 보호되어 있는 프로퍼티

protected string $subjectClassName
리턴 string