Beispiel #1
0
    /**

     * Create Object Permissions rows from an array, removing those Objects

     * with the same UID, and recreaiting the records from the array data.

     *

     * @param $sProUid string for the process Uid.

     * @return void

     */

    public function createObjectPermissionsRows ($ObjectPermissions)

    {

        foreach ($ObjectPermissions as $key => $row) {

            $oObjectPermissions = new ObjectPermission();

            if ($oObjectPermissions->Exists( $row['OP_UID'] )) {

                $oObjectPermissions->remove( $row['OP_UID'] );

            }

            $res = $oObjectPermissions->create( $row );

        }

        return;

    }