1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/codes/Configuration - Custom getters and setters.php

22 lines
536 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
class Customer extends Doctrine_Record {
public function setUp() {
// setup code goes here
}
public function setTableDefinition() {
// table definition code goes here
}
public function getAvailibleProducts() {
// some code
}
public function setName($name) {
if($this->isValidName($name))
$this->set("name",$name);
}
public function getName() {
return $this->get("name");
}
}
?>