for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Data manager action
*
* @author Alexey Krupskiy <[email protected]>
* @link http://inji.ru/
* @copyright 2016 Alexey Krupskiy
* @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
*/
namespace Ui\DataManager;
class Action extends \Object {
public static $name = '';
public static $groupAction = false;
public static $rowAction = false;
public static $managerAction = false;
* Must return button text for row in manager
* @param \Ui\DataManager $dataManager
* @param \Model $item
* @param array $params
* @param array $actionParams
* @return string
public static function rowButton($dataManager, $item, $params, $actionParams) {
return '';
}
* Must return button options array for manager actions
* @param array $formParams
* @return array
public static function managerButton($dataManager, $formParams, $actionParams) {
* Call if user choose rows and call action in manager. Return result msg.
* @param string $ids
* @param array $adInfo
public static function groupAction($dataManager, $ids, $actionParams, $adInfo) {
$adInfo
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return 'empty action';
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.