http://doc.silverstripe.com/doku.php?id=datamodel#overloading
class KkitoPage extends Page {
static $db = array(
"Photos" => "Text"
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new TextField("Photos" , "Photos"));
return $fields;
}
function getPhotos(){
return "dddfsad";
}
public function setPhotos($Photos){
//!!!!! what can i do to set the Photos if i want $this->Photos = "prefix".$Photos."suffix"
//$this->Photos = "kkito";
//return parent::setPhotos("kkk123123");
//parent::setPhotos($Photos);
//$this->obj;
//$this->obj->Photos = "hahahaha";
}
}