Comments for "XML_XUL"

» Submit Your Comment
Comments are only accepted during the "Proposal" phase. This proposal is currently in the "Finished" phase.
» Comments
  • Davey Shafik  [2004-02-22 19:11 UTC]

    I like, :)

    Perhaps an XML_GUI class could be created which will provide a common API for/convert between XUL, Glade and the forthcoming XAML from MS?

    - Davey
  • Stefan Neufeind  [2004-02-22 19:33 UTC]

    I'm always impressed what cool standards are built around XML. But not surprised that it's Sebastian proposing this :-)) One interesting point imho might also be to be able to easily read an XUL-file, edit it and save it back - all one package, with a consistent API.
    The package seems very interesting and might function as a good basis for e.g. another package which will use php-gtk or something to display the user-interfaces described. But this should better be done in a separate package.
  • Alan Knowles  [2004-02-23 00:32 UTC]

    Not bad..

    couple of things:
    - too many 'empty' classes.. - why not store the schema (eg. attributes types in a 'data' file), and just use base XML_XUL_Element...

    A few of the methods use >3 arguments.. it would be nice to simplify them, or start using the assoc array method of setting..

    I would prefer
    $tb = XML_XUL_Element::Factory('textbox');

    And please, please, please make the children/attributes public.. vars..
  • Alan Knowles  [2004-02-23 00:42 UTC]

    you cant use ->clone()

    it's a reserved word in PHP5
  • Alan Knowles  [2004-02-23 00:45 UTC]

    getElementByName() should not return a pear error .. it's too fat and slow.. for something like this.
    - just use false... and === tests.
  • Alan Knowles  [2004-02-23 00:47 UTC]

    flooding email alert:.....

    serialize? - I'd expect to see unserialize .. and some magic storage mechanism
    .. perhaps
    toXul() or just toXML()..
  • Stephan Schmidt  [2004-02-23 19:31 UTC]


    I just uploaded v0.5.1 with the following changes:

    - renamed clone() to cloneElement()
    - getElementById() returns false if element is not found
    - removed some unneeded attributes
    - children, cdata and attributes are now public properties
    - added some cross-references in API doc
    - fixed minor bugs
    - added addPopup() to popupset element

    Most of these changes have been wishes by Alan Knowles

    Best regards,

  • Alan Knowles  [2004-02-24 00:45 UTC]

    couple of ideas came this morning when looking at it..

    a) elementName as public
    b) change the var $_commonAttribs to a method getAttribs($mergewith=array())
    return $mergewith + array(....)

    The means that print_r($xul) will produce a reasonably short view of the tree..