Source for file Word.php
Documentation is available at Word.php
* Copyright (C) 2009 Mai (Me Artificial Intelligence)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* @author Wouter Bulten (wouterbulten@mai-ai.org)
* @copyright Copyright (C) 2009 Mai (Me Artificial Intelligence)
* @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
* @link http://www.launchpad.net/mai
* Db_User_Word is the table class for the word table at the user database.
* @author Wouter Bulten (wouterbulten@mai-ai.org)
* @copyright Copyright (C) 2009 Mai (Me Artificial Intelligence)
* @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
* @link http://www.launchpad.net/mai
* @property integer $user_id
* @property integer $wordtype
* @property integer $ww_id
* @property integer $target
* @property integer $time
$this->setTableName('word');
$this->hasColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true, 'type' => 'integer', 'length' => '4'));
$this->hasColumn('user_id', 'integer', 4, array('type' => 'integer', 'length' => '4'));
$this->hasColumn('word', 'string', 255, array('type' => 'string', 'notblank' => true, 'regexp' => '/[\\w]/', 'length' => '255'));
$this->hasColumn('wordtype', 'integer', 1, array('type' => 'integer', 'notblank' => true, 'length' => '1'));
$this->hasColumn('ww_id', 'integer', 1, array('type' => 'integer', 'default' => 0, 'length' => '1'));
$this->hasColumn('target', 'integer', 1, array('type' => 'integer', 'default' => 0, 'length' => '1'));
$this->hasColumn('time', 'integer', 1, array('type' => 'integer', 'default' => 0, 'length' => '1'));
|