public static function addToSequence($_model_id, $add_model_id, $position = 0, $position_tuner = null, $grid_modifier = null) { $module = static::$module; $modeler = $module::model()->modeler; $operations = $module::model()->operations; if (!($modeler::exists($add_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canRun() && $modeler::exists($_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canEdit() && \Sequode\Application\Modules\Sequode\Authority::isSequence() && !\Sequode\Application\Modules\Sequode\Authority::isFullSequence())) { return; } forward_static_call_array(array($operations, __FUNCTION__), array($add_model_id, $position, $position_tuner, $grid_modifier)); return; }
public static function addToSequence($sequode_model_id = 0, $add_sequode_model_id = 0, $position = 0, $position_tuner = null, $grid_modifier = null) { if (!(\Sequode\Application\Modules\Sequode\Modeler::exists($add_sequode_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canRun() && \Sequode\Application\Modules\Sequode\Modeler::exists($sequode_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canEdit() && \Sequode\Application\Modules\Sequode\Authority::isSequence() && !\Sequode\Application\Modules\Sequode\Authority::isFullSequence())) { return; } \Sequode\Application\Modules\Sequode\Operations::addToSequence($add_sequode_model_id, $position, $position_tuner, $grid_modifier); $object = (object) null; $object->Success = 1; echo json_encode($object); exit; }