Class Operation
An operation.
- ICanBoogie\Object
- ┗ ICanBoogie\Operation
Direct known subclasses
Methods summary
public static
from( $properties = null, array $construct_args = [], $class_name = null )
: ICanBoogie\Operation
Creates a ICanBoogie\Operation instance from the specified parameters.
protected static
from_request( ICanBoogie\HTTP\Request $request )
: ICanBoogie\Operation|null
Creates an operation instance from a request.
protected static
from_route( ICanBoogie\HTTP\Request $request, string $path )
: ICanBoogie\Operation|null
Tries to create an ICanBoogie\Operation instance from a route.
protected static
from_module_request( ICanBoogie\HTTP\Request $request, string $module_id, string $operation_name )
: ICanBoogie\Operation
Creates an ICanBoogie\Operation instance from a module request.
public static
format_class_name( string $namespace, string $operation_name )
: string
Formats the specified namespace and operation name into an operation class.
protected
lazy_get_properties( void )
: array
Getter for the ICanBoogie\Operation::$properties property.
public
__invoke( ICanBoogie\HTTP\Request $request )
: ICanBoogie\Operation\Response
Handles the operation and prints or returns its result.
public
format( string $format, array $args = [], array $options = [] )
: ICanBoogie\I18n\FormattedString
Format a string.
protected
control_permission( mixed $permission )
: boolean
Controls the permission of the user for the operation.
protected
control_ownership( void )
: boolean
Controls the ownership of the user over the operation target record.