trait CoreLinkMethods

Trait CoreLinkMethods

Methods

array|false
get_current_link(array $params = array())

No description

get_current_url()

No description

array|bool
get_link()

No description

string
get_url()

No description

print_current_link()

No description

string
print_link(array $params = array())

Wrapper for XF->lib->link substituting modules with instance names etc.

Details

Parameters

array $params LinkHelper Params in Array Format

Return Value

array|false ['label'=>'', 'target'=>'', 'class'=>'', 'title'=>'', 'href'=>'', 'full'=>''] Link Resource Array

See also

Link::get_current_link()

at line 181
get_current_url()

Return Value

array|bool Contains array with url, full etc.

at line 108
string get_url()

Return Value

string URL

See also

XF\Lib\Link::get_url()

Wrapper for XF->lib->link substituting modules with instance names etc.

Example:

$this->mod->print_link(array('label'=>$label, 'page'=>$page, 'ajax_modal'=>array('form' => 'noajax')));
$this->mod->print_link(array('label'=>$label, 'page'=>$page, 'JS-FSLoader'=>array('message' => 'loading..','autohide'=>'5000')));

Parameters

array $params = [ 'label'=>$label, 'page'=>$page, 'cmd'=>$cmd, 'class'=>'btn', 'target'=>'new', 'title'=>$title, 'confirm_text'=>("Are you sure?"), 'JS-FSLoader'=>['message' => 'loading..', 'autohide'=>'5000'], 'ajax_modal'=>['form' => 'noajax', 'width'=> 800 ], 'ajax_update'=>$domId, 'ajax_replace'=>$domId, 'xdi' => DocumentIndex, 'xui_target' => UIAjaxComponent ]

Return Value

string Full HTML A Tag