PHP Classes

File: examples/config/citizen.php

Recommend this page to a friend!
  Classes of philippe thomassigny   Dominion   examples/config/citizen.php   Download  
File: examples/config/citizen.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Dominion
Build and execute portable SQL queries
Author: By
Last change:
Date: 12 years ago
Size: 647 bytes
 

Contents

Class file image Download
<?php

// Dominion v8 examples
// Language: PHP
// Creation: 09/10/2011

// TABLE: citizen,
// citizens

$citizen = new DB_Table("citizen", "cit_", DB_Table::TABLE);

//PK, SEQUENCE
$citizen->AddField(
  new
DB_FieldInteger("key", new DB_Check(array(DB_Check::PK, DB_Check::AI)))
);

$citizen->AddField(
  new
DB_FieldVarchar("name", 255, new DB_Check(DB_Check::NN))
);

$citizen->AddField(
  new
DB_FieldVarchar("mail", 255, new DB_Check(DB_Check::NN))
);

$citizen->AddField(
  new
DB_FieldText("info")
);

$citizen->AddField(
  new
DB_FieldLob("picture")
);

$citizen->AddField(
  new
DB_FieldDateTime("date", new DB_Check(DB_Check::NN))
);

?>