Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
@@ -17,4 +17,4 @@ namespace IPS\{app};
|
||||
class _Application extends \IPS\Application
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -46,4 +46,4 @@ class _{controller} extends \IPS\Dispatcher\Controller
|
||||
}
|
||||
|
||||
// Create new methods with the same name as the 'do' parameter which should execute it
|
||||
}
|
||||
}
|
||||
@@ -48,4 +48,4 @@ class _{controller} extends \IPS\Dispatcher\Controller
|
||||
/* Display */
|
||||
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'global', 'core' )->block( 'title', (string) $table );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,4 +39,4 @@ class _{controller} extends \IPS\Node\Controller
|
||||
{restriction}
|
||||
parent::execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,4 +53,4 @@ class _{key} extends \IPS\Task
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,4 +39,4 @@ class _Upgrade
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
}
|
||||
@@ -37,4 +37,4 @@ class ips_{app}_setup_upg_{version_long}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
}
|
||||
@@ -95,4 +95,4 @@ class _{key} extends {class}
|
||||
// Use $this->output( $foo, $bar ); to return a string generated by the template set in init() or manually added via $widget->template( $callback );
|
||||
// Note you MUST route output through $this->output() rather than calling \IPS\Theme::i()->getTemplate() because of the way widgets are cached
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,5 +27,19 @@ class _{class}
|
||||
/**
|
||||
* @brief Content Item Classes
|
||||
*/
|
||||
public $classes = array( 'IPS\{app}\Example' );
|
||||
public $classes = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param \IPS\Member|NULL $member If checking access, the member to check for, or NULL to not check access
|
||||
* @return void
|
||||
*/
|
||||
public function __construct( \IPS\Member $member = NULL )
|
||||
{
|
||||
if ( $member === NULL or $member->canAccessModule( \IPS\Application\Module::get( '{app}', '{module}', 'front' ) ) )
|
||||
{
|
||||
$this->classes[] = 'IPS\{app}\{example}';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,8 +22,18 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
/**
|
||||
* Front Navigation Extension: {class}
|
||||
*/
|
||||
class _{class}
|
||||
class _{class} extends \IPS\core\FrontNavigation\FrontNavigationAbstract
|
||||
{
|
||||
/**
|
||||
* Get Type Title which will display in the AdminCP Menu Manager
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function typeTitle()
|
||||
{
|
||||
return \IPS\Member::loggedIn()->language()->addToStack('frontnavigation_{app}');
|
||||
}
|
||||
|
||||
/**
|
||||
* Can access?
|
||||
*
|
||||
|
||||
@@ -27,7 +27,7 @@ class _{class}
|
||||
/**
|
||||
* Process Form
|
||||
*
|
||||
* @param \IPS\Form\Tabbed $form The form
|
||||
* @param \IPS\Helpers\Form $form The form
|
||||
* @param \IPS\Member\Group $group Existing Group
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -45,7 +45,7 @@ class _{class}
|
||||
/**
|
||||
* Process Form
|
||||
*
|
||||
* @param \IPS\Form\Tabbed $form The form
|
||||
* @param \IPS\Helpers\Form $form The form
|
||||
* @param \IPS\Member $member Existing Member
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -32,10 +32,9 @@ class _{class}
|
||||
/**
|
||||
* Add settings for ACP configuration to the form
|
||||
*
|
||||
* @param IPS\Helpers\Form $form Form to add any settings to
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function settings( &$form )
|
||||
public function settings()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user