Method for get the token

This commit is contained in:
Diego Najar 2019-02-25 16:32:47 +01:00
parent 75ec5f32f3
commit ee31f42424
1 changed files with 11 additions and 6 deletions

View File

@ -15,6 +15,11 @@ class pluginAPI extends Plugin {
); );
} }
public function getToken()
{
return $this->getValue('token');
}
public function form() public function form()
{ {
global $L; global $L;
@ -298,12 +303,12 @@ class pluginAPI extends Plugin {
global $pages; global $pages;
// Parameters and the default values // Parameters and the default values
$published = (isset($args['published'])?$args['published']:true); $published = (isset($args['published'])?$args['published']=='true':true);
$static = (isset($args['static'])?$args['static']:false); $static = (isset($args['static'])?$args['static']=='true':false);
$draft = (isset($args['draft'])?$args['draft']:false); $draft = (isset($args['draft'])?$args['draft']=='true':false);
$sticky = (isset($args['sticky'])?$args['sticky']:false); $sticky = (isset($args['sticky'])?$args['sticky']=='true':false);
$scheduled = (isset($args['scheduled'])?$args['scheduled']:false); $scheduled = (isset($args['scheduled'])?$args['scheduled']=='true':false);
$untagged = (isset($args['untagged'])?$args['untagged']:false); $untagged = (isset($args['untagged'])?$args['untagged']=='true':false);
$numberOfItems = $this->getValue('numberOfItems'); $numberOfItems = $this->getValue('numberOfItems');
$pageNumber = 1; $pageNumber = 1;