| 1 | <?php |
||
| 13 | class Post extends ActiveRecordModel |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string $tableName name of the database table. |
||
| 18 | */ |
||
| 19 | protected $tableName = "Posts"; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Columns in the table. |
||
| 23 | * |
||
| 24 | * @var integer $id primary key auto incremented. |
||
| 25 | */ |
||
| 26 | public $id; |
||
| 27 | public $posttitle; |
||
| 28 | public $postname; |
||
| 29 | public $posttext; |
||
| 30 | |||
| 31 | public function getInformation($name) |
||
| 36 | |||
| 37 | public function getAllInformationWhere($name) |
||
| 42 | } |
||
| 43 |