\WTLink
Synopsis
class WTLink
extends DBField
implements
CompositeDBField
{
- // members
- protected $type;
- protected $link;
- protected boolean $isChanged = false;
- private static array $composite_db = ;
- // methods
- public void compositeDatabaseFields()
- public void __construct()
- public void isChanged()
- public void setValue()
- public void requireField()
- public void setType()
- public void getType()
- public void setInternal()
- public void getInternal()
- public void getExtra()
- public void setExtra()
- public void getDataObject()
- public void setDataObject()
- public void getExternal()
- public void setExternal()
- public void getEmail()
- public void setEmail()
- public void setFile()
- public void getFile()
- public void setTargetBlank()
- public void getTargetBlank()
- public void setAnchor()
- public void getAnchor()
- public void exists()
- public FormField scaffoldFormField()
- public void writeToManipulation()
- public void addToQuery()
- public mixed|string Link()
- public string Tag()
- public DataObject|null getDO()
- public static array|mixed get_data_object_types()
Hierarchy
Extends
- DBField
Implements
- CompositeDBField
Members
private
- $composite_db
protected
- $isChanged
- $link
- $type
Methods
public
- __construct()
- Link() — Determines the link by the type and what is set
- Tag() — Creates the anchor tag, if $text is it is put inside the anchor tag, otherwise it only returns the opening of the ancor tag
- addToQuery()
- compositeDatabaseFields()
- exists()
- getAnchor()
- getDO() — Get the DataObject instance
- getDataObject()
- getEmail()
- getExternal()
- getExtra()
- getFile()
- getInternal()
- getTargetBlank()
- getType()
- get_data_object_types() — Get DataObject classes which can be used for linking, uses config WTLink.data_objects, falls back to looking up classes which have implemented the WTLinkableInterface
- isChanged()
- requireField()
- scaffoldFormField() — Returns a CompositeField instance used as a default for form scaffolding.
- setAnchor()
- setDataObject()
- setEmail()
- setExternal()
- setExtra()
- setFile()
- setInternal()
- setTargetBlank()
- setType()
- setValue()
- writeToManipulation()