Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      Class: __CommandLinkComponent


      Class Overview

      A command link represents a link.


      The purpose of a command link is:

      • To redirect the navigation to another page or
      • To execute a portion of code when the user click on it

      A command link tag is "commandlink"

      i.e.

      1.    <comp:commandlink name="see_invoice_detail" caption="See invoice detail"/>

      A command link has a caption, which is the text shown within the link.

      When a command link is clicked, the click event is raised, allowing to execute a portion of code associated to that event
      i.e.

      1.    public function see_invoice_detail_click(__UIEvent &$event{
      2.        //your code here to be executed when the user click the link
      3.    }


      See the commandlink component in action here: http://www.lionframework.org/components/combobox.html


      See:  __FormComponent, __CommandLinkComponent
      __UIComponent
         |
         --__CommandLinkComponent

      Properties

      Methods

      [ Top ]

      Inherited Properties, Constants, and Methods

      Inherited Properties Inherited Methods Inherited Constants

      Inherited From __UIComponent

      Inherited From __UIComponent


      [ Top ]

      Properties Summary

      mixed   $_caption  

      [ Top ]

      Method Summary

      string   getCaption()   Get the caption associated to the current link
      void   setCaption()   Set the caption to be shown within the link

      [ Top ]

      Properties

      mixed   $_caption = null
      Access:  protected


      Methods

      getCaption


        string getCaption( )

      Get the caption associated to the current link

      Access:  public



      setCaption


        void setCaption( string $caption  )

      Set the caption to be shown within the link


      Parameters:
      TypeNameDescription
      string $caption

      Access:  public