public function objectAttributes(PHP5ObjectBuilder $builder)
    {
        if (!$this->behavior->hasArchiveClass()) {
            $builder->declareClassFromBuilder($builder->getNewStubQueryBuilder($this->behavior->getArchiveTable()));
        }

        $script = '';
        if ($this->behavior->isArchiveOnInsert()) {
            $script .= "protected \$archiveOnInsert = true;
";
        }
        if ($this->behavior->isArchiveOnUpdate()) {
            $script .= "protected \$archiveOnUpdate = true;
";
        }
        if ($this->behavior->isArchiveOnDelete()) {
            $script .= "protected \$archiveOnDelete = true;
";
        }

        return $script;
    }
public function objectAttributes(PHP5ObjectBuilder $builder)
    {
        if (!$this->behavior->hasArchiveClass()) {
            $builder->declareClassFromBuilder($builder->getNewStubQueryBuilder($this->behavior->getArchiveTable()));
        }

        $script = '';
        if ($this->behavior->isArchiveOnInsert()) {
            $script .= "protected \$archiveOnInsert = true;
";
        }
        if ($this->behavior->isArchiveOnUpdate()) {
            $script .= "protected \$archiveOnUpdate = true;
";
        }
        if ($this->behavior->isArchiveOnDelete()) {
            $script .= "protected \$archiveOnDelete = true;
";
        }

        return $script;
    }
public function objectAttributes ( PHP5ObjectBuilder $ builder ) { if ( ! $ this -> behavior -> hasArchiveClass ( ) ) { $ builder -> declareClassFromBuilder ( $ builder -> getNewStubQueryBuilder ( $ this -> behavior -> getArchiveTable ( ) ) ) ; } $ script = '' ; if ( $ this -> behavior -> isArchiveOnInsert ( ) ) { $ script .= "protected \$archiveOnInsert = true;
" ; } if ( $ this -> behavior -> isArchiveOnUpdate ( ) ) { $ script .= "protected \$archiveOnUpdate = true;
" ; } if ( $ this -> behavior -> isArchiveOnDelete ( ) ) { $ script .= "protected \$archiveOnDelete = true;
" ; } return $ script ; }
Add object attributes to the built class.

@param PHP5ObjectBuilder $builder

@return string The PHP code to be added to the builder.
Add object attributes to the built class .