function __construct(StdUsefulData $data, $wantedContents) { $contatti = $data->ioResource->getRawContents($wantedContents); $this->template = $data->templateDir; $this->theHover = $data->hoverHandler; $this->body = $contatti->body; foreach ($contatti->images->item as $item) { $this->images[] = $item; } parent::bodyCook(); }
function __construct(StdUsefulData $data) { $homeCont = $data->ioResource->getRawContents("home"); $this->template = $data->templateDir; $this->theHover = $data->hoverHandler; $this->title = $homeCont->title; $this->subtitle = $homeCont->subtitle; $this->body = $homeCont->body; foreach ($homeCont->images->item as $item) { $this->images[] = $item; } parent::bodyCook(); }