[TYPO3-50-general] Helping Functions

Thomas Allmer at at delusionworld.com
Mon Feb 2 03:47:35 CET 2009


again and yet another question (sorry about that, but there are quite 
few places to get info... :p)

Is there currently a way so I don't need to write all this set/get 
-- code --
protected $title;
public function setTitle($title) {
	$this->title = $title;
public function getTitle() {
	return $this->title;
-- code --

I looked at Reflection\ObjectAccess and Object\Mapper but how to 
"include" this into my class?

I was also wondering about something Robert "showed" at the 
"Hitchhiker's Guide to FLOW3" (it's at about minute 53).

-- code --
  * @return F3\PhoneBook\Domain\PhoneBookEntry
abstract protected function createPhoneBookEntry($key);
-- code --

this still doesn't work right? at least I get the following Error:
<Class> contains 1 abstract method and must therefore be declared 
abstract or implement the remaining methods ([...]createPhoneBookEntry)

it should more or less create this automatically?

-- code --
private function createPhoneBookEntry($key) {
	return $this->oF->create('[...]\Domain\PhoneBookEntry', $key);
-- code --

| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |

More information about the TYPO3-project-5_0-general mailing list