PHP Класс Phalcon\Mvc\MongoCollection

Наследование: extends Phalcon\Mvc\Collection, implements MongoDB\BSON\Unserializable
Показать файл Открыть проект

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

Свойство Тип Описание
$_disableEvents @codingStandardsIgnoreStart

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

Метод Описание
bsonUnserialize ( array $data ) Pass the values from the BSON document back to the object.
delete ( ) Deletes a model instance. Returning true on success or false otherwise.
findById ( $id )
findFirst ( array $parameters = null )
fireEventCancel ( string $eventName ) : boolean Fires an internal event that cancels the operation
save ( ) Creates/Updates a collection based on the values in the attributes
setId ( mixed $id ) Sets a value for the _id property, creates a MongoId object if needed
summatory ( $field, $conditions = null, $finalize = null )

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

Метод Описание
_exists ( $collection ) @codingStandardsIgnoreStart
_getResultset ( $params, Phalcon\Mvc\CollectionInterface $collection, $connection, $unique ) @codingStandardsIgnoreStart

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

_exists() защищенный Метод

@codingStandardsIgnoreStart
protected _exists ( $collection )

_getResultset() защищенный статический Метод

@codingStandardsIgnoreStart
protected static _getResultset ( $params, Phalcon\Mvc\CollectionInterface $collection, $connection, $unique )
$collection Phalcon\Mvc\CollectionInterface

bsonUnserialize() публичный Метод

Pass the values from the BSON document back to the object.
public bsonUnserialize ( array $data )
$data array

delete() публичный Метод

$robot = Robots::findFirst(); $robot->delete(); foreach (Robots::find() as $robot) { $robot->delete(); }
public delete ( )

findById() публичный статический Метод

public static findById ( $id )

findFirst() публичный статический Метод

public static findFirst ( array $parameters = null )
$parameters array

fireEventCancel() публичный Метод

Fires an internal event that cancels the operation
public fireEventCancel ( string $eventName ) : boolean
$eventName string
Результат boolean

save() публичный Метод

Creates/Updates a collection based on the values in the attributes
public save ( )

setId() публичный Метод

Sets a value for the _id property, creates a MongoId object if needed
public setId ( mixed $id )
$id mixed

summatory() публичный статический Метод

public static summatory ( $field, $conditions = null, $finalize = null )

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

$_disableEvents защищенное статическое свойство

@codingStandardsIgnoreStart
protected static $_disableEvents