Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

method and it's children organizational confusion

#35

make Method, Method_Isearching, Method_Tagging, and Method_Scripting into drivers. Method will be parent main drive(r) while the other three will be the children.

Reported by S. Shehzed · December 5th, 2010 @ 03:43 AM

State: resolved
Milestone: v0.20
Assigned to: S. Shehzed S. Shehzed

Activity

  1. S. Shehzed
    S. Shehzed

    Follow driver_example. Children have access to parent's methods, but not one another's (obviously).

    The main driver extends CI_Driver_Library. Children extend CI_Driver. If you want common or semi-common methods and variables among children methods you can use interfaces.

    __constructor() should have:

    $this->valid_drivers[] = 'Blah_One';
    $this->valid_drivers[] = 'Blah_Two';
    

    Don't need to load children. Just load the parent: $this->load->driver('Document');

    Structure of files should be:
    Base directory: ParentName
    File in directory: ParentName.
    Directory in base, alongside file above: drivers
    Files in drivers:
    - ParentName_One - ParentName_Two

    Will call children by doing this:
    $this->ParentName->One->method();

    December 5th, 2010 @ 04:00 AM

  2. S. Shehzed
    S. Shehzed
    • State changed from active to resolved

    December 12th, 2010 @ 01:50 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.