Location: PHPKode > scripts > PHPClass Generator > phpclass-generator/sqlelement.class.php4
<?php
//     $Id: sqlelement.class.php4,v 1.1 2000/08/08 19:31:22 lw-cvs Exp $
//
//     Utility class for PHP Class Generator
//
//     (C) 2000 by Lars Wilhelmsen <hide@address.com>, All rights reserved.
//
//     Created on: <08-Aug-2000 21:28:40 lw>

class SQLElement
{
    var $Name;
    var $Primary;
    var $Increment;
    var $DefaultValue;
    var $Type;
    var $Size;
    var $NULL;
    
    function SQLElement( $attrs )
    {
        $this->Name = $attrs["NAME"];
        $this->Primary = $attrs["PRIMARY"];
        $this->Increment = $attrs["INCREMENT"];
        $this->DefaultValue = $attrs["DEFAULT"];

        $this->Type = $attrs["TYPE"];
        $this->Size = $attrs["SIZE"];
        $this->NULL = $attrs["NULL"];
    }

    function Name()
    {
        return $this->Name;
    }

    function Primary()
    {
        return $this->Primary;
    }

    function Increment()
    {
        return $this->Increment;
    }

    function DefaultValue()
    {
        return $this->DefaultValue;
    }

    function Type()
    {
        return $this->Type;
    }

    function Size()
    {
        return $this->Size;
    }

    function NULL()
    {
        return $this->NULL;
    }
}
?>
Return current item: PHPClass Generator