Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActivateOperation
  • AvailableSitesBlock
  • ConfigBlock
  • ConfigOperation
  • DeactivateOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • IsUniqueOperation
  • LoginComboElement
  • LoginForm
  • LoginOperation
  • LogoutOperation
  • ManageBlock
  • Model
  • Module
  • OwnershipResolver
  • PermissionResolver
  • ProfileController
  • QueryOperationOperation
  • SaveOperation
  • UnlockLoginOperation
  • Update20131021
  • User
  • ViewProvider

Interfaces

  • OwnershipResolverInterface
  • PermissionResolverInterface

Traits

  • LoggedAtProperty

Exceptions

  • WebsiteAdminNotAccessible

Class SaveOperation

Create or update a user profile.

ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
Extended by ICanBoogie\Operation
Extended by ICanBoogie\SaveOperation
Extended by Icybee\Operation\Constructor\Save
Extended by Icybee\Modules\Users\SaveOperation

Direct known subclasses

Icybee\Modules\Members\SaveOperation

Namespace: Icybee\Modules\Users
Located at vendor/icanboogie-modules/users/lib/operations/save.php

Methods summary

protected array
# lazy_get_properties( )

Adds the constructor id to the properties.

Adds the constructor id to the properties.

Returns

array
The properties of the operation.

Overrides

Icybee\Operation\Constructor\Save::lazy_get_properties
protected boolean
# control_permission( mixed $permission = ICanBoogie\Module::PERMISSION_CREATE )

Permission is granted if the user is modifing its own profile, and has permission to.

Permission is granted if the user is modifing its own profile, and has permission to.

Parameters

$permission
mixed
$permission The required permission.

Returns

boolean
true if the user has the specified permission, false otherwise.

See

ICanBoogie.Operation::control_permission()

Overrides

ICanBoogie\Operation::control_permission
protected boolean
# control_ownership( )

Controls the ownership of the user over the operation target record.

Controls the ownership of the user over the operation target record.

Returns

boolean
true if the user as ownership of the record or there is no record, false otherwise.

Overrides

ICanBoogie\Operation::control_ownership
protected boolean
# control_form( )

The 'User' role (rid 2) is mandatory for every user.

The 'User' role (rid 2) is mandatory for every user.

Returns

boolean
true if the form exists and validates, false otherwise.

See

ICanBoogie.Operation::control_form()

Overrides

ICanBoogie\Operation::control_form
protected boolean
# validate( ICanboogie\Errors $errors )

The method simply returns true.

The method simply returns true.

Returns

boolean
true if the operation is valid, false otherwise.

Throws

Exception
If something horribly wrong happens.

Overrides

ICanBoogie\SaveOperation::validate
protected array
# process( )

Creates or updates a record in the module's primary model.

Creates or updates a record in the module's primary model.

A record is created if the operation's key is empty, otherwise an existing record is updated.

The method uses the properties property to get the properties used to create or update the record.

Returns

array
An array composed of the save mode ('update' or 'new') and the record's key.

Throws

Exception
when saving the record fails.

Overrides

ICanBoogie\SaveOperation::process

Methods inherited from ICanBoogie\SaveOperation

control_record(), get_controls(), lazy_get_record()

Methods inherited from ICanBoogie\Operation

__construct(), __invoke(), control(), control_authentication(), control_method(), control_session_token(), encode(), format_class_name(), from(), from_module_request(), from_request(), from_route(), get_is_forwarded(), get_module(), get_request(), get_response(), lazy_get_form(), reset()

Methods inherited from ICanBoogie\Object

resolve_facade_properties(), resolve_private_properties(), to_array(), to_json()

Methods inherited from ICanBoogie\ToArrayRecursive

to_array_recursive()

Methods used from ICanBoogie\ToArrayRecursiveTrait

to_array_recursive()

Methods used from ICanBoogie\PrototypeTrait

__call(), __get(), __set(), __sleep(), __wakeup(), get_prototype(), has_method(), has_property(), last_chance_get(), last_chance_set()

Magic methods summary

Constants summary

Constants inherited from ICanBoogie\Operation

CONTROL_AUTHENTICATION, CONTROL_FORM, CONTROL_METHOD, CONTROL_OWNERSHIP, CONTROL_PERMISSION, CONTROL_RECORD, CONTROL_SESSION_TOKEN, DESTINATION, KEY, NAME, RESTFUL_BASE, RESTFUL_BASE_LENGTH, SESSION_TOKEN

Properties summary

Properties inherited from ICanBoogie\Operation

$destination, $form, $format, $key, $method, $module, $properties, $request, $response

Magic properties inherited from ICanBoogie\Operation

$is_forwarded, $record, $request

Magic properties inherited from ICanBoogie\Object

$prototype

Autodoc API documentation generated by ApiGen 2.8.0