Location: PHPKode > projects > LudoDB > ludoDB-master/Tests/classes/TestTable.php
<?php
/**
 * Created by JetBrains PhpStorm.
 * User: borrow
 * Date: 04.11.12


 */
class TestTable extends LudoDBModel
{
    protected $config = array(
        'idField' => 'id',
        'table' => 'TestTable',
        'columns' => array(
            'id' => 'int auto_increment not null primary key',
            'firstname' => 'varchar(32)',
            'lastname' => 'varchar(32)',
            'address' => 'varchar(64)'
        ),
    );

    public function setFirstName($value)
    {
        $this->setValue('firstname', $value);
    }

    public function getFirstname()
    {
        return $this->getValue('firstname');
    }

    public function setLastname($value)
    {
        $this->setValue('lastname', $value);
    }

    public function getLastname()
    {
        return $this->getValue('lastname');
    }
}
Return current item: LudoDB