PHP Classes

File: examples/orm/PostMapper.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/orm/PostMapper.php   Download  
File: examples/orm/PostMapper.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 258 bytes
 

Contents

Class file image Download
<?php

#require_once('A/Orm/DataMapper.php');

class PostMapper extends A_Orm_DataMapper {

    public function
__construct($db) {
       
parent::__construct($db, 'Post','posts');
       
$this->map('id')->setKey();
       
$this->map('title');
       
$this->map('content');
    }

}