Login   Register  
PHP Classes
elePHPant
Icontem

File: ExampleObject2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Indrek Altpere  >  ORM mapping class(like Hibernate), maps database table rows to objects  >  ExampleObject2.php  >  Download  
File: ExampleObject2.php
Role: Class source
Content type: text/plain
Description: Another example object
Class: ORM mapping class(like Hibernate), maps database table rows to objects
Store and retrieve objects in MySQL table records
Author: By
Last change: Update for latest BaseObject version
Date: 2 years ago
Size: 392 bytes
 

Contents

Class file image Download
<?php
class ExampleObject2 extends BaseObject {
    public function 
IdField() {
        return 
'example2id';
    }
    public function 
GetTableName() {
        return 
'exampleobjects2';
    }
    public static function 
ById($id) {
        
self::GetById($id__CLASS__);
    }
    public function &
GetExample() {
        return 
ExampleObject::ById($this->example_id);
    }
}
?>