protected function findByFilterComponentsSourceSetup( $source )
    {

        // Set source defaults
        if( !( $source & ( self::PERSISTED | self::UNPERSISTED ) ) ) {
            $source += self::PERSISTED + self::UNPERSISTED;
        }

        if( !( $source & ( self::CHANGED | self::UNCHANGED ) ) ) {
            $source += self::CHANGED + self::UNCHANGED;
        }

        if( !( $source & ( self::WITH_CHILDREN | self::NO_CHILDREN ) ) ) {
            $source += self::WITH_CHILDREN;
        }

        if( !( $source & ( Base::DATA | Base::INITIAL ) ) ) {
            $source += Base::DATA;
        }

        return $source;

    }
protected function findByFilterComponentsSourceSetup( $source )
    {

        // Set source defaults
        if( !( $source & ( self::PERSISTED | self::UNPERSISTED ) ) ) {
            $source += self::PERSISTED + self::UNPERSISTED;
        }

        if( !( $source & ( self::CHANGED | self::UNCHANGED ) ) ) {
            $source += self::CHANGED + self::UNCHANGED;
        }

        if( !( $source & ( self::WITH_CHILDREN | self::NO_CHILDREN ) ) ) {
            $source += self::WITH_CHILDREN;
        }

        if( !( $source & ( Base::DATA | Base::INITIAL ) ) ) {
            $source += Base::DATA;
        }

        return $source;

    }
protected function findByFilterComponentsSourceSetup ( $ source ) { // Set source defaults if ( ! ( $ source & ( self :: PERSISTED | self :: UNPERSISTED ) ) ) { $ source += self :: PERSISTED + self :: UNPERSISTED ; } if ( ! ( $ source & ( self :: CHANGED | self :: UNCHANGED ) ) ) { $ source += self :: CHANGED + self :: UNCHANGED ; } if ( ! ( $ source & ( self :: WITH_CHILDREN | self :: NO_CHILDREN ) ) ) { $ source += self :: WITH_CHILDREN ; } if ( ! ( $ source & ( Base :: DATA | Base :: INITIAL ) ) ) { $ source += Base :: DATA ; } return $ source ; }
Set source defaults.
Helper method of findByFilterComponents
@param mixed $source
Set source defaults . Helper method of findByFilterComponents