PHP 클래스 mtv\models\Collection

상속: implements Iterato\Iterator, implements ArrayAcces\ArrayAccess, implements Countabl\Countable
파일 보기 프로젝트 열기: newsapps/wordpress-mtv

공개 프로퍼티들

프로퍼티 타입 설명
$default_filter
$model
$models

공개 메소드들

메소드 설명
__construct ( $array = [] )
add ( $model ) Add a model instance to this collection
all ( ) Return a collection containing all model instances
clear ( ) Remove all model instances from this collection
count ( ) Countable interface Makes count($collection) work
current ( ) Makes a collection iterable like an array
filter ( $args ) Return a collection containing model instances matching certian criteria
get ( $args ) Create, fetch and return a single model instance with primary keys
get_by ( $args ) Create, fetch and return a single model instances based on some unique keys
key ( )
next ( )
offsetExists ( $offset ) ArrayAccess interface Makes a collection object addressable like an array
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
rewind ( )
to_json ( ) Return the results of calling to_json on all the model instances in this collection
valid ( )
values ( ) Return specific values from all the model instances in this collection TODO: Return all values if no params are given

메소드 상세

__construct() 공개 메소드

public __construct ( $array = [] )

add() 공개 메소드

Add a model instance to this collection
public add ( $model )

all() 공개 정적인 메소드

Return a collection containing all model instances
public static all ( )

clear() 공개 메소드

Remove all model instances from this collection
public clear ( )

count() 공개 메소드

Countable interface Makes count($collection) work
public count ( )

current() 공개 메소드

Makes a collection iterable like an array
public current ( )

filter() 공개 정적인 메소드

Return a collection containing model instances matching certian criteria
public static filter ( $args )

get() 공개 정적인 메소드

Create, fetch and return a single model instance with primary keys
public static get ( $args )

get_by() 공개 정적인 메소드

Create, fetch and return a single model instances based on some unique keys
public static get_by ( $args )

key() 공개 메소드

public key ( )

next() 공개 메소드

public next ( )

offsetExists() 공개 메소드

ArrayAccess interface Makes a collection object addressable like an array
public offsetExists ( $offset )

offsetGet() 공개 메소드

public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

rewind() 공개 메소드

public rewind ( )

to_json() 공개 메소드

Return the results of calling to_json on all the model instances in this collection
public to_json ( )

valid() 공개 메소드

public valid ( )

values() 공개 메소드

Return specific values from all the model instances in this collection TODO: Return all values if no params are given
public values ( )

프로퍼티 상세

$default_filter 공개적으로 정적으로 프로퍼티

public static $default_filter

$model 공개적으로 정적으로 프로퍼티

public static $model

$models 공개적으로 프로퍼티

public $models