Open Journal Systems
3.3.0
|
Public Member Functions | |
add ($object, $request) | |
delete ($object) | |
edit ($object, $params, $request) | |
validate ($action, $props, $allowedLocales, $primaryLocale) | |
Definition at line 22 of file EntityWriteInterface.inc.php.
PKP\Services\Interfaces\EntityWriteInterface::add | ( | $object, | |
$request | |||
) |
Add a new object
This does not check if the user is authorized to add the object, or validate or sanitize this object.
$object | object |
$request | Request |
PKP\Services\Interfaces\EntityWriteInterface::delete | ( | $object | ) |
Delete an object
This does not check if the user is authorized to delete the object or if the object exists.
$object | object |
PKP\Services\Interfaces\EntityWriteInterface::edit | ( | $object, | |
$params, | |||
$request | |||
) |
Edit an object
This does not check if the user is authorized to edit the object, or validate or sanitize the new object values.
$object | object |
$params | Array Key/value array of new data |
$request | Request |
PKP\Services\Interfaces\EntityWriteInterface::validate | ( | $action, | |
$props, | |||
$allowedLocales, | |||
$primaryLocale | |||
) |
Validate the properties of an object
Passes the properties through the SchemaService to validate them, and performs any additional checks needed to validate the entity.
This does NOT authenticate the current user to perform the action.
$action | string The type of action required (add/edit). One of the VALIDATE_ACTION_... constants. |
$props | array The data to validate |
$allowedLocales | array Which locales are allowed for this entity |
$primaryLocale | string |