コード例 #1
0
ファイル: LinksCest.php プロジェクト: mlanin/go
 public function deleteForeignRedirect(FunctionalTester $I)
 {
     $id = LoginPage::of($I)->createDummyUser();
     $this->_attachLinkToUser($id);
     $I->haveRecord('links', $this->linkRecord);
     LinksPage::of($I)->deleteLink();
     $I->seeRecord('links', $this->linkRecord);
     $I->seeCurrentUrlEquals(LinksPage::$URL);
 }
コード例 #2
0
ファイル: CurrentPage.php プロジェクト: tniessen/tinyIt
 public static function getInstance($path, $params)
 {
     if (!count($path)) {
         self::redirectTo('home');
         exit;
     }
     $pname = $path[0];
     $path = self::nextPath($path);
     switch ($pname) {
         case 'home':
             $page = HomePage::getInstance($path, $params);
             break;
         case 'register':
             $page = RegistrationPage::getInstance($path, $params);
             break;
         case 'login':
             $page = LoginPage::getInstance($path, $params);
             break;
         case 'logout':
             $page = LogoutPage::getInstance($path, $params);
             break;
         case 'switch-user':
             $page = SwitchUserPage::getInstance($path, $params);
             break;
         case 'links':
             $page = LinksPage::getInstance($path, $params);
             break;
         case 'users':
             $page = UsersPage::getInstance($path, $params);
             break;
         case 'groups':
             $page = GroupsPage::getInstance($path, $params);
             break;
         case 'settings':
             $page = SettingsPage::getInstance($path, $params);
             break;
         case 'tools':
             $page = ToolsPage::getInstance($path, $params);
             break;
         case 'installation':
             $page = InstallationPage::getInstance($path, $params);
             break;
         default:
             $page = NotFoundPage::getInstance($path, $params);
     }
     return $page;
 }
コード例 #3
0
ファイル: index.php プロジェクト: esokullu/grou.ps
         // user dependent
         $pg->addBlock($pg->MainColumn, $isokc[0], $isokc[1], $treng->_("This is a blog entry", "pageblogs"), false, false, false, true);
     }
 } else {
     include_once 'includes/Page.MapZZZZ.class.php';
     include_once 'includes/Page.TalksZZZZZ.class.php';
     include_once "includes/Page.PhotosZZZZZ.class.php";
     include_once "includes/Page.LinksZZZZ.class.php";
     include_once "includes/Page.WikiZZZZZZZ.class.php";
     include_once "includes/Page.CalendarXX.class.php";
     $mapspage = new MapPage($group_name);
     $map_allow_souvenirs = $group->moduleOptions_getMapAllowSouvenirs();
     $talkspage = new TalksPage($group_name);
     $talks_strict_maillist = $group->moduleOptions_getTalksStrictMaillist();
     $photospage = new PhotosPage($group_name);
     $linkspage = new LinksPage($group_name);
     $links_allow_rating = $group->moduleOptions_getLinksAllowRating();
     $links_allow_comments = $group->moduleOptions_getLinksAllowComments();
     $links_allow_digg = $group->moduleOptions_getLinksAllowDigg();
     $links_allow_reddit = $group->moduleOptions_getLinksAllowReddit();
     $links_allow_delicious = $group->moduleOptions_getLinksAllowDelicious();
     $wikipage = new WikiPage($group_name);
     $pg->setLayout($pg->EqualColumns);
     $taborder = null;
     $can_members_change_tab_order_home = $group->canMembersChangeTabOrderHome();
     if ($can_members_change_tab_order_home) {
         $taborder = getMyHomeTabOrder();
     } else {
         $taborder = getGroupHomeTabOrder();
     }
     $oblocks = 0;