PHP Class Yab\Quarx\Repositories\EventRepository

ファイルを表示 Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all EventS.
findEventById ( integer $id ) : Collection | null | static | Event Find Event by given id.
findEventsByDate ( $date ) : Illuminate\Database\Eloquent\Collection | static[] Returns all published Events.
paginated ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all paginated EventS.
published ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all published Events.
search ( string $input ) : Event Search Event.
store ( array $input ) : Event Stores Event into database.
update ( Event $event, array $input ) : Event Updates Event into database.

Method Details

all() public method

Returns all EventS.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

findEventById() public method

Find Event by given id.
public findEventById ( integer $id ) : Collection | null | static | Event
$id integer
return Illuminate\Support\Collection | null | static | Yab\Quarx\Models\Event

findEventsByDate() public method

Returns all published Events.
public findEventsByDate ( $date ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

paginated() public method

Returns all paginated EventS.
public paginated ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

published() public method

Returns all published Events.
public published ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

store() public method

Stores Event into database.
public store ( array $input ) : Event
$input array
return Yab\Quarx\Models\Event

update() public method

Updates Event into database.
public update ( Event $event, array $input ) : Event
$event Yab\Quarx\Models\Event
$input array
return Yab\Quarx\Models\Event