private static function isCommitAllowed($objectType, $local = null, $action = null)
    {
        //====================================================================//
        // Verify this Object is Locked ==> No Action on this Node
        //====================================================================//
        if (is_array($local)) {
            foreach ($local as $value) {
                if (Splash::object($objectType)->isLocked($value)) {
                    return false;
                }
            }
        } else {
            if (Splash::object($objectType)->isLocked($local)) {
                return false;
            }
        }
        //====================================================================//
        // Verify Create Object is Locked ==> No Action on this Node
        if ((SPL_A_CREATE === $action) && Splash::object($objectType)->isLocked()) {
            return false;
        }
        //====================================================================//
        // Verify if Travis Mode (PhpUnit) ==> No Commit Allowed
        return !self::isTravisMode($objectType, $local, $action);
    }
private static function isCommitAllowed($objectType, $local = null, $action = null)
    {
        //====================================================================//
        // Verify this Object is Locked ==> No Action on this Node
        //====================================================================//
        if (is_array($local)) {
            foreach ($local as $value) {
                if (Splash::object($objectType)->isLocked($value)) {
                    return false;
                }
            }
        } else {
            if (Splash::object($objectType)->isLocked($local)) {
                return false;
            }
        }
        //====================================================================//
        // Verify Create Object is Locked ==> No Action on this Node
        if ((SPL_A_CREATE === $action) && Splash::object($objectType)->isLocked()) {
            return false;
        }
        //====================================================================//
        // Verify if Travis Mode (PhpUnit) ==> No Commit Allowed
        return !self::isTravisMode($objectType, $local, $action);
    }
private static function isCommitAllowed ( $ objectType , $ local = null , $ action = null ) { //====================================================================// // Verify this Object is Locked ==> No Action on this Node //====================================================================// if ( is_array ( $ local ) ) { foreach ( $ local as $ value ) { if ( Splash :: object ( $ objectType ) -> isLocked ( $ value ) ) { return false ; } } } else { if ( Splash :: object ( $ objectType ) -> isLocked ( $ local ) ) { return false ; } } //====================================================================// // Verify Create Object is Locked ==> No Action on this Node if ( ( SPL_A_CREATE === $ action ) && Splash :: object ( $ objectType ) -> isLocked ( ) ) { return false ; } //====================================================================// // Verify if Travis Mode (PhpUnit) ==> No Commit Allowed return ! self :: isTravisMode ( $ objectType , $ local , $ action ) ; }
Check if Commit is Allowed 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)

@return bool
Check if Commit is Allowed Local Object