コード例 #1
0
 function getHelp($incTable = true)
 {
     $name = $this->getName();
     try {
         $view = new am4View("shortcode_" . $name);
         $view->assign("shortcode", $this);
         $help = $view->fetch();
         return $help;
     } catch (Exception $e) {
     }
 }
コード例 #2
0
ファイル: protection.php プロジェクト: ajay786singh/emc
 function doIndex($options = null, $errors = array(), $vars = array())
 {
     parent::doIndex(array(), array(), array('hidden' => true));
     $script = am4View::init("bulk_action", $this, am4View::TYPE_JS)->render();
 }
コード例 #3
0
ファイル: widgets.php プロジェクト: subashemphasize/test_site
 function after_login_widget($instance)
 {
     global $current_user;
     // Get current user's subscription and show usefull links;
     $amember_api = am4PluginsManager::getAPI();
     $view = new am4View("widget_after_login");
     $view->assign("instance", $instance);
     if ($amember_api->isLoggedIn()) {
         $view->assign("user", $amember_api->getUser());
         $view->assign("links", $amember_api->getUserLinks());
     }
     $view->assign('isLoggedIn', $amember_api->isLoggedIn());
     $view->render();
 }