Maslosoft Mangan API
Class Modifier
\Maslosoft\Mangan\Modifier
Helper for building MongoDB atomic updates.
- addCond method
$criteriaObject->addCond($fieldName, $operator, $vale); // this will produce fieldName
value
For modifiers list \Maslosoft\Mangan\Modifier::$modifiers
Namespace: Maslosoft\Mangan
Author: Ianaré Sévi
Author: Philippe Gaultier pgaultier@ibitux.com
Copyright: 2011 Ibitux http://www.ibitux.com
Since: v1.3.6
Located at Modifier.php
Author: Ianaré Sévi
Author: Philippe Gaultier pgaultier@ibitux.com
Copyright: 2011 Ibitux http://www.ibitux.com
Since: v1.3.6
Located at Modifier.php
Methods summary
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
#
mergeWith(
Add a new set of modifiers to current modifiers. If modifiers has already been added for specific field, they will be overwritten. |
public
|
#
addModifier( string $fieldName, string $modifier, mixed $value )
Add a new modifier rule to specific field. |
public
boolean
|
Magic methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
public static
array
|
$modifiers
$modifiers supported modifiers |
#
[
'inc' => '$inc',
'set' => '$set',
'unset' => '$unset',
'push' => '$push',
'pushAll' => '$pushAll',
'addToSet' => '$addToSet',
'pop' => '$pop',
'pull' => '$pull',
'pullAll' => '$pullAll',
'rename' => '$rename',
]
|
API documentation generated by ApiGen