#5 Adding a method into SimpleWizardSequence

open-fixed
nobunobu
7
2007-11-27
2007-07-20
GIJOE
No

I'm writing a custom installer for hodajuku distribution.

And I want to hook a page instead of insert one.

install/class/simplewizard.php has two methods for custom installer.

add() and insertAfter().

But I want a method named replaceAfter() like this:

[code]
function replaceAfter($after, $name, $title='', $next='', $next_btn='', $back='', $back_btn='', $reload='') {
if (!empty($this->_list[$after])) {
$this->_list[$name]['title'] = $title;
$this->_list[$name]['next'] = $next;
$this->_list[$name]['next_btn'] = $next_btn;
$this->_list[$after]['next'] = $name;
$this->_list[$after]['next_btn'] = $title;
$this->_list[$name]['back'] = $back;
$this->_list[$name]['back_btn'] = $back_btn;
$this->_list[$name]['reload'] = $reload;
}
}
[/code]

Discussion

  • minahito

    minahito - 2007-10-25
    • priority: 5 --> 7
     
  • minahito

    minahito - 2007-10-25

    Logged In: YES
    user_id=1102607
    Originator: NO

    I don't know a detail of the installer mechanism including SimpleWizard, so I will check it at the beginning.

    Because this patch doesn't give any troubles to other parts, I think 'patching right now' is no problem.

     
  • nobunobu

    nobunobu - 2007-11-27

    Logged In: YES
    user_id=1270173
    Originator: NO

    > Because this patch doesn't give any troubles to other parts, I think
    > 'patching right now' is no problem.

    I agree with minahito, and I think GIJOE's patch may be useful for a Custom Distribution from Third party.

    So I'll add this patch into CVS

     
  • nobunobu

    nobunobu - 2007-11-27
    • labels: --> Enhancement
    • assigned_to: nobody --> nobunobu
    • status: open --> open-accepted
     
  • nobunobu

    nobunobu - 2007-11-27
    • status: open-accepted --> open-fixed
     
  • nobunobu

    nobunobu - 2007-11-27

    Logged In: YES
    user_id=1270173
    Originator: NO

    I added replaceAfter method into SimpleWizardSequence

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks