1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/docs/Configuration - Custom getters and setters.php

23 lines
533 B
PHP
Raw Normal View History

2007-04-14 01:49:11 +04:00
<code type="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");
}
}
</code>