1. Go to this page and download the library: Download icanboogie/operation library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
icanboogie / operation example snippets
use ICanBoogie\Module;
use ICanBoogie\Operation;
class SaveOperation extends Operation
{
protected function get_controls()
{
return [
self::CONTROL_PERMISSION => Module::PERMISSION_CREATE,
self::CONTROL_RECORD => true,
self::CONTROL_OWNERSHIP => true,
self::CONTROL_FORM => true
] + parent::get_controls();
}
}