#9 Need Block_render_skel.class

closed
nobody
None
5
2002-09-04
2002-02-02
No

It's be nice to thave a Block_render_skel.class to
extend for block renderers, this way changes like
migrating to $psl and common mistakes in code needed
throughout would be taken care of with one update.

Discussion

  • Peter Cruickshank

    Logged In: YES
    user_id=279604

    It would be cool if the block API included methods to:
    - return a description of the purpose of the block
    - return an array of valid block_options (name, description,
    possible values)

    It would be really cool if the blockAdmin screen used this
    information (might take a bit of javascript or dynamic
    refreshes when the block type is changed)

    P

     
  • nathan hruby

    nathan hruby - 2002-04-23

    Logged In: YES
    user_id=19736

    Yep.. there are things that would be put in the skel class.

     
  • Will Dyson

    Will Dyson - 2002-06-07

    Logged In: YES
    user_id=368834

    I have created a basic Block_render_i base class, and made
    all the individual renderers extend it. The base class has
    methods for getting a description string, and an array of
    valid options. I gave all the renderers brief description
    strings, but have not done the options (exept for the ones
    valid for all renderers, which are in the base class).

    I have taken a look at making the blockAdmin class display
    the description, but nothing definite so far.

    I have posted 2 patches, 565744 and 565749 to the patches
    section.

     
  • Joe Stewart

    Joe Stewart - 2002-09-04
    • status: open --> closed
     
  • Joe Stewart

    Joe Stewart - 2002-09-04

    Logged In: YES
    user_id=77269

    This feature has been added to the CVS. Please update your
    copy of PHPSlash, or wait for the next release.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks