PHP Classes

File: includes/class.tag.php

Recommend this page to a friend!
  Classes of SPAM  >  pork.dbObject  >  includes/class.tag.php  >  Download  
File: includes/class.tag.php
Role: Class source
Content type: text/plain
Description: Example class: tag
Class: pork.dbObject
Map objects into MySQL database table rows
Author: By
Last change:
Date: 9 years ago
Size: 466 bytes


Class file image Download

class Tag extends dbObject
$this->__setupDatabase('tags', // database table
array('ID_Tag' => 'ID', // database field => mapped object property
'strTag' => 'Tag'),
'ID_Tag', // primary table key
$ID); // value of primary key to init with (can be false for new empty object / row)
$this->addRelation('Blog', 'BlogTag'); // define a many:many relation to Blog through BlogTags