Get datas vars from a form formatted by such a Automne.LinkField class and build a CMS_href
boolean
create
([ $datas = ''], [ $module = MOD_STANDARD_CODENAME], $resourceID, [ $fieldID = ''], array $datas,, string $module,, integer $resourceID,, integer $fieldID,)
-
array
$datas,: the datas sent by the Automne.LinkField return
-
string
$module,: the module concerned by this link
-
integer
$resourceID,: ID to prepend the filename uploaded with
-
integer
$fieldID,: optional field ID to surcharge file name representation ("r".$resourceID."_f".$fieldID."_")
-
$datas
-
$module
-
$resourceID
-
$fieldID
Get POST vars from a form formatted by such a CMS_dialog_href class and build a CMS_href
Uses : _POST['link'] : array $link, the $_POST['link'] built by submiting the form data : array ( 'internal'=>, 'external'=>, 'file'=>, 'edit_file'=>, 'popup'=> array ('width'=>,'height'=>), 'type'=> )
boolean
doPost
([ $module = MOD_STANDARD_CODENAME], $resourceID, [ $fieldID = ''], string $module,, integer $resourceID,, integer $fieldID,)
-
string
$module,: the module concerned by this link
-
integer
$resourceID,: ID to prepend the filename uploaded with
-
integer
$fieldID,: optional field ID to surcharge file name representation ("r".$resourceID."_f".$fieldID."_")
-
$module
-
$resourceID
-
$fieldID
Get : a XHTML render of the "A" tag
string,
getHTML
([ $module = MOD_STANDARD_CODENAME], [string $dataLocation = RESOURCE_DATA_LOCATION_EDITED], string $module,)
-
string
$module,: the module concerned by this link
-
string
$dataLocation: Where does the data lies ? @see CMS_resource constants
-
$module
Returns XHTML formatted form fields for this Href
string
getHTMLFields
(
$cms_language, [
$module =
MOD_STANDARD_CODENAME], [
$dataLocation =
RESOURCE_DATA_LOCATION_EDITED], [
$options =
false],
CMS_language $cms_language,,
string $module,,
constant $dataLocation,,
array $options,)
-
CMS_language
$cms_language,: the language to build the form with
-
string
$module,: the module codename (default : MOD_STANDARD_CODENAME)
-
constant
$dataLocation,: the current data location (RESOURCE_DATA_LOCATION_EDITED (default), RESOURCE_DATA_LOCATION_PUBLIC, etc.)
-
array
$options,: array of possible link options (default false : all options actived) Example : Array ( 'label' => true|false, // Link has label ? 'internal' => true|false, // Link can target an Automne page ? 'external' => true|false, // Link can target an external resource ? 'file' => true|false, // Link can target a file ? 'destination'=> true|false, // Can select a destination for the link ? 'no_admin' => true|false, // Deprecated : Remove all admin class reference (default = false) 'admin' => true|false, // Use admin JS and classes instead of direct actions (default = true) 'currentPage'=> int|false, // Current page to open tree panel (default : CMS_tree::getRoot()) )
-
$cms_language
-
$module
-
$dataLocation
-
$options
Constructor.
void
__construct
(
CMS_href $href, [
$prefixname =
''])
Set : The CMS_href
boolean
setHref
(
$href,
CMS_href $href,)
-
CMS_href
$href,: the HREF to use in this dialog
-
$href
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()