1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Schedule task Data path

Discussion in 'Development' started by XdmingXD, Apr 19, 2017.

  1. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    When I call a schedule task in main class
    Must I put the task class at the same datapath of the main class?
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    No, it is the same way all classes are. You can have your main class in namespace\pluginname, and have the task in namespace\pluginname\tasks\importanttasks\superimportanttasks if you want, as long as you utilize it correctly. You would only need to create a use statement for it, or write the full path when using it.
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    HimbeersaftLP and corytortoise like this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    ##also see: hacking standards with anonymous class
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.