コード例 #1
0
 public static function updateSharing($_model_id, $json)
 {
     $module = static::$module;
     $modeler = $module::model()->modeler;
     $operations = $module::model()->operations;
     if (!($modeler::exists($_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canShare())) {
         return;
     }
     $_o = json_decode($json);
     if (!is_object($_o)) {
         return;
     }
     forward_static_call_array(array($operations, __FUNCTION__), array(rawurldecode($_o->sharing)));
     return;
 }
コード例 #2
0
 public static function updateSharing($value = 0, $sequode_model_id = 0)
 {
     if (!(\Sequode\Application\Modules\Sequode\Modeler::exists($sequode_model_id, 'id') && \Sequode\Application\Modules\Account\Authority::canShare())) {
         return;
     }
     \Sequode\Application\Modules\Sequode\Operations::updateSharing($value);
     exit;
 }