SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class LinkSpecDocument

Functions

NameVisibilityDescription
getAttrspublicGet any extra html attributes to use for a given link
getEditFormpublicGet the HTML to use for editing a given linkspec
getUrlpublicGet the URL for a given link
isValidpublicValidate the submission, for instances where certain constraints apply
loadNeedspublicIf there are any Needs calls that the edit form requires, they should be loaded here

public getAttrs

array $LinkSpecDocument->getAttrs ( mixed $specdata );

Get any extra html attributes to use for a given link

public getEditForm

unknown $LinkSpecDocument->getEditForm ( mixed $field_name , mixed $curr_specdata );

Get the HTML to use for editing a given linkspec

The HTML should create a HTML field with the name $field_name
If there is a spec currently being edited, the specdata will
be provided in $curr_specdata

public getUrl

unknown $LinkSpecDocument->getUrl ( mixed $specdata );

Get the URL for a given link

public isValid

unknown $LinkSpecDocument->isValid ( mixed $specdata );

Validate the submission, for instances where certain constraints apply

public loadNeeds

void $LinkSpecDocument->loadNeeds ( );

If there are any Needs calls that the edit form requires, they should be loaded here