FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Link_Field Class Reference

Action link grid field for displaying link with data item. More...

Inheritance diagram for Link_Field:
Field

Public Member Functions

 __construct ($name)
 Contruct of field, label is set and internacionalized from name.
 link ($url, $data_name=NULL, $data_title=NULL)
 Link of field, label is set and internacionalized from data name.
 render ()
 Renders field.
- Public Member Functions inherited from Field
 __call ($method, $args)
 Call method (sets properties)
 label ($label)
 Sets label of field.
 __toString ()
 Render field.

Public Attributes

 $name = 'id'
 $data_name = 'id'
 $data_title = ''
 $url
 $script = null
- Public Attributes inherited from Field
 $label
 $name
 $bool
 $class
 $order = true
 $style
 $help
 $args

Detailed Description

Action link grid field for displaying link with data item.

Author
Ondřej Fibich Link_Field name(string $name) Link_Field data_name(string $name) Link_Field script(string $script) Link_Field url(string $url)

Constructor & Destructor Documentation

Link_Field::__construct (   $name)

Contruct of field, label is set and internacionalized from name.

Parameters
string$nameName of field

Reimplemented from Field.

Member Function Documentation

Link_Field::link (   $url,
  $data_name = NULL,
  $data_title = NULL 
)

Link of field, label is set and internacionalized from data name.

Parameters
string$url
string$data_nameName of data field, if empty name is set as data name
Link_Field::render ( )

Renders field.

Returns
string

Reimplemented from Field.


The documentation for this class was generated from the following file: