Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/config/country.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of philippe thomassigny  >  Dominion  >  examples/config/country.php  >  Download  
File: examples/config/country.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Dominion
Build and execute portable SQL queries
Author: By
Last change:
Date: 2012-03-05 20:47
Size: 582 bytes
 

Contents

Class file image Download
<?php

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

// TABLE: country,
// countries

$country = new DB_Table("country""cou_"DB_Table::TABLE);

// PK, 2 ISO letters
$country->AddField(
  new 
DB_FieldVarchar("key"2, new DB_Check(array(DB_Check::PK)))
);

// Name of the country
$country->AddField(
  new 
DB_FieldVarchar("name"255, new DB_Check(DB_Check::NN))
);

// Population of the country
$country->AddField(
  new 
DB_FieldInteger("population", new DB_Check(DB_Check::NN))
);

// Flag of the country
$country->AddField(
  new 
DB_FieldLob("flag")
);

?>