Fork me on GitHub

Feedback: Wow  Bottom

  • Let me start off by saying it's been quite a few years since I had either the time or inclination to either code or Zikula, so this may seem a little dated to you regulars, but since I now have the time and inclination(read: motivation), I've been forced to proclaim, Hallelujah!

    Code

    $apiObj = new mymodule_Api_User();


    Really? God bless!

    Maybe an obvious or simple example of how simple and intuitive the extension plugin system has become, but wow does that ever make things a lot more real than previous code structures.

    Again in case you missed it: Developers, thank you!

    Code

    $this->registerStatus($this->__('Thanks! Can't wait to see the structure fully functional'));


    --
    Under Construction!
  • Hey ya!
    Nice to see you again ^^

    I guess that instanciating a module API class is not the ideal here BTW :P
    You should use the convention like:

    Code

    ModUtil::apiFunc('Module', 'type', 'func', $args);

    For utility methods, we're using static methods directly, like:

    Code

    ModName_Util::execUtilityTask();

    The code is quite sexy already with OOP
    I hope to see your later impressions icon_wink

    Greetings and Merry Xmas!

    --
    - Mateo T. -
    Mis principios... son mis fines
  • nestormateo


    I guess that instanciating a module API class is not the ideal here BTW :P
    You should use the convention like:

    Code

    ModUtil::apiFunc('Module', 'type', 'func', $args);




    You may get module controller/api class instanced by calling:

    Code

    $test = ModUtil::getObject('Module_Api_Type');
    $test->someDummyMethod();


    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • LOL thanks to both of you.
    @ Mateo - Yes I understand it's an awkward instancing but it is handy from the immediate controller. I'm just glad the system has matured enough to be able to build upon it's sexy OOP.
    @ Jusuff - Thanks, I had found that in testing, but again not entirely ideal for most module setups.

    I found that:

    Code

    notMyModule_Api_Type::func()

    also works quite fine though.

    As for my later impressions... still more wow.

    --
    Under Construction!

This list is based on users active over the last 60 minutes.