public static function commit($objectType, $local = null, $action = null, $user = '', $comment = '')
    {
        //====================================================================//
        // Stack Trace
        self::log()->trace();
        //====================================================================//
        // Verify this Object Class is Valid ==> No Action on this Node
        if (false == Splash::object($objectType)) {
            return true;
        }
        //====================================================================//
        // Initiate Tasks parameters array
        $params = self::getCommitParameters($objectType, $local, $action, $user, $comment);
        //====================================================================//
        // Add This Commit to Session Logs
        static::$commited[] = $params;
        //====================================================================//
        // Verify this Object is Locked ==> No Action on this Node
        if (!self::isCommitAllowed($objectType, $local, $action)) {
            return true;
        }
        //====================================================================//
        // Add Task to Ws Task List
        Splash::ws()->addTask(
            SPL_F_COMMIT,
            $params,
            Splash::trans('MsgSchRemoteCommit', (string) $action, $objectType, (string) Splash::count($local))
        );
        //====================================================================//
        // Execute Task
        $response = self::ws()->call(SPL_S_OBJECTS);
        //====================================================================//
        // Analyze NuSOAP results
        return self::isCommitSuccess($response);
    }
public static function commit($objectType, $local = null, $action = null, $user = '', $comment = '')
    {
        //====================================================================//
        // Stack Trace
        self::log()->trace();
        //====================================================================//
        // Verify this Object Class is Valid ==> No Action on this Node
        if (false == Splash::object($objectType)) {
            return true;
        }
        //====================================================================//
        // Initiate Tasks parameters array
        $params = self::getCommitParameters($objectType, $local, $action, $user, $comment);
        //====================================================================//
        // Add This Commit to Session Logs
        static::$commited[] = $params;
        //====================================================================//
        // Verify this Object is Locked ==> No Action on this Node
        if (!self::isCommitAllowed($objectType, $local, $action)) {
            return true;
        }
        //====================================================================//
        // Add Task to Ws Task List
        Splash::ws()->addTask(
            SPL_F_COMMIT,
            $params,
            Splash::trans('MsgSchRemoteCommit', (string) $action, $objectType, (string) Splash::count($local))
        );
        //====================================================================//
        // Execute Task
        $response = self::ws()->call(SPL_S_OBJECTS);
        //====================================================================//
        // Analyze NuSOAP results
        return self::isCommitSuccess($response);
    }
public static function commit ( $ objectType , $ local = null , $ action = null , $ user = '' , $ comment = '' ) { //====================================================================// // Stack Trace self :: log ( ) -> trace ( ) ; //====================================================================// // Verify this Object Class is Valid ==> No Action on this Node if ( false == Splash :: object ( $ objectType ) ) { return true ; } //====================================================================// // Initiate Tasks parameters array $ params = self :: getCommitParameters ( $ objectType , $ local , $ action , $ user , $ comment ) ; //====================================================================// // Add This Commit to Session Logs static :: $ commited [ ] = $ params ; //====================================================================// // Verify this Object is Locked ==> No Action on this Node if ( ! self :: isCommitAllowed ( $ objectType , $ local , $ action ) ) { return true ; } //====================================================================// // Add Task to Ws Task List Splash :: ws ( ) -> addTask ( SPL_F_COMMIT , $ params , Splash :: trans ( 'MsgSchRemoteCommit' , ( string ) $ action , $ objectType , ( string ) Splash :: count ( $ local ) ) ) ; //====================================================================// // Execute Task $ response = self :: ws ( ) -> call ( SPL_S_OBJECTS ) ; //====================================================================// // Analyze NuSOAP results return self :: isCommitSuccess ( $ response ) ; }
Submit an Update for a Local Object

@param string           $objectType object Type Name
@param array|int|string $local      object Local Id or Array of Local Id
@param string           $action     Action Type (SPL_A_UPDATE, or SPL_A_CREATE, or SPL_A_DELETE)
@param string           $user       User Name
@param string           $comment    Operation Comment for Historics

@return bool
Submit an Update for a Local Object