protected function setSimpleBit($fieldName, $position, $fieldData, $objectName = "object")
    {
        //====================================================================//
        //  Compare Field Data
        if ($this->getSimpleBit($fieldName, $position, $objectName) !== $fieldData) {
            //====================================================================//
            //  Update Field Data
            if ($fieldData) {
                $this->{$objectName}->{$fieldName} = $this->{$objectName}->{$fieldName} | (1 << $position);
            } else {
                $this->{$objectName}->{$fieldName} = $this->{$objectName}->{$fieldName} & ~ (1 << $position);
            }
            $this->needUpdate($objectName);
        }

        return $this;
    }
protected function setSimpleBit($fieldName, $position, $fieldData, $objectName = "object")
    {
        //====================================================================//
        //  Compare Field Data
        if ($this->getSimpleBit($fieldName, $position, $objectName) !== $fieldData) {
            //====================================================================//
            //  Update Field Data
            if ($fieldData) {
                $this->{$objectName}->{$fieldName} = $this->{$objectName}->{$fieldName} | (1 << $position);
            } else {
                $this->{$objectName}->{$fieldName} = $this->{$objectName}->{$fieldName} & ~ (1 << $position);
            }
            $this->needUpdate($objectName);
        }

        return $this;
    }
protected function setSimpleBit ( $ fieldName , $ position , $ fieldData , $ objectName = "object" ) { //====================================================================// //  Compare Field Data if ( $ this -> getSimpleBit ( $ fieldName , $ position , $ objectName ) !== $ fieldData ) { //====================================================================// //  Update Field Data if ( $ fieldData ) { $ this -> { $ objectName } -> { $ fieldName } = $ this -> { $ objectName } -> { $ fieldName } | ( 1 << $ position ) ; } else { $ this -> { $ objectName } -> { $ fieldName } = $ this -> { $ objectName } -> { $ fieldName } & ~ ( 1 << $ position ) ; } $ this -> needUpdate ( $ objectName ) ; } return $ this ; }
Common Writing of a Single Bit Field

@param string $fieldName  Field Identifier / Name
@param int    $position   Bit position (Starting form 0)
@param mixed  $fieldData  Field Data
@param string $objectName Name of private object to read (Default : "object")

@return self
Common Writing of a Single Bit Field