OXID Community Forum

> German forum > Entwickler > Extended Class extend
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Extended Class extend


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 10-24-2016, 08:22 PM
cRs-design.eu cRs-design.eu is offline
Junior Member
Join Date: Sep 2016
Posts: 5
cRs-design.eu is on a distinguished road
Question Extended Class extend

Hallo Community

ist es möglich eine Controller Klasse, welches bereits extended ist (überladen mit classname_parent) erneut zu überladen?

Aktuell greift dies leider nicht.

Modul 1:

PHP Code:
class controller1 extends controller1_parent 
{
...

metadata
PHP Code:
'extend' => array(
'user' => '../controller1'

Modul 2:

PHP Code:
class controller2 extends controller2_parent 
{
...

metadata
PHP Code:
'extend' => array(
'controller1' => '../controller2'

Ich möchte eine Funktion in dem Modul 1 Überschreiben, damit es Updatefähig bleibt.

Danke euch
Reply With Quote
#Top   #2  
Old 10-24-2016, 10:10 PM
vanilla thunder's Avatar
vanilla thunder vanilla thunder is online now
Marco's Sidekick
Join Date: Nov 2010
Posts: 6,374
vanilla thunder is on a distinguished road
Default Re: Extended Class extend

Mit dem zweiten Modul musst du wiederum den ursprünglichen Controller erweitern und nicht das Modul 1.
Reply With Quote
#Top   #3  
Old 10-25-2016, 06:35 AM
cRs-design.eu cRs-design.eu is offline
Junior Member
Join Date: Sep 2016
Posts: 5
cRs-design.eu is on a distinguished road
Default AW: Extended Class extend

Hi Vanilla,

genau das hatte ich gestern Abend auch ohne erfolg getestet.
Hatte dann alles verworfen und heute nochmal das gleiche gemacht.

Also die user Klasse extended, wie du empfohlen hast.
Heute hat es geklappt.

Danke dir
Reply With Quote
Reply

Bookmarks

Tags
class, extend, extended

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Class Extend Problem mishoo Entwickler 13 05-06-2015 06:41 AM
Extend the class oxBase FFrick Modules 1 03-06-2012 01:16 PM
Can i extend two Modules with the same class aranex Modules 1 02-10-2010 02:14 PM
extend one class by 2 or more modules? SubNet-One Modules 2 09-25-2009 12:44 PM
Modules extended same oxid class ibond Modules 1 05-20-2009 06:43 PM

All times are GMT +1. The time now is 05:21 PM.