本文整理汇总了PHP中Wizard::setTitleText方法的典型用法代码示例。如果您正苦于以下问题:PHP Wizard::setTitleText方法的具体用法?PHP Wizard::setTitleText怎么用?PHP Wizard::setTitleText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wizard
的用法示例。
在下文中一共展示了Wizard::setTitleText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: auth
* (at your option) any later version.
*
* N/X is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with N/X; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**********************************************************************/
require_once "../../config.inc.php";
$auth = new auth("EXPORT");
$page = new page("Export");
$wizard = new Wizard($lang->get("export_data", "Export Content and Templates Wizard"));
$wizard->setTitleText($lang->get("wz_export_title", "This wizard is used to exchange clusters, cluster-templates and page-templates between your N/X installation and others. The wizard generates a XML File, which you can store on your local hard drive and exchange with other N/X-Users."));
////// STEP 1 //////
$step = new Step();
$step->setTitle($lang->get("wzt_export_type", "Select type to export"));
$step->setExplanation($lang->get("wze_export_type", "On the right you need to select the type of data you want to export. Clusters are storing content. When you export clusters, the templates are automatically exported too. Cluster-Templates are schemes for creating clusters. Page-Templates are used for creating pages in the website. Cluster-Templates, Meta-Templates and layout are automatically exported when you export a Page-Template."));
$resources[0][0] = $lang->get("cluster", "Cluster");
$resources[0][1] = "CLUSTER";
$resources[1][0] = $lang->get("cluster_template", "Cluster Template");
$resources[1][1] = "CLUSTERTEMPLATE";
$resources[2][0] = $lang->get("page_template", "Page Template");
$resources[2][1] = "PAGETEMPLATE";
$step->add(new WZRadio("resource_type", $resources));
////// STEP 2 //////
$step2 = new STSelectResource();
$step2->setTitle($lang->get("wzt_sel_exp_res", "Select Resource for export"));
////// STEP 3 //////
示例2: auth
<?php
require_once "../../config.inc.php";
$auth = new auth("BULKIMAGE");
$page = new Page("Bulkimage importer");
require_once $c["path"] . "api/userinterface/wizard/stcheckarchive.php";
require_once $c["path"] . "api/userinterface/wizard/stimportimages.php";
$wizard = new Wizard($lang->get("imp_impages", "Import Images"));
$wizard->setTitleText($lang->get("wz_import_im_title", "This wizard is used for importing importing images to N/X. Pack the images into a zip archive. The wizard will then create the data."));
if ($wizard->firstRun) {
$_SESSION["archivefolder"] = "";
}
////// STEP 1 //////
$step1 = new Step();
$step1->setTitle($lang->get("wzt_archive_file", "Select Archive"));
$step1->setExplanation($lang->get("wze_archive_file", "Please select the zip-archive you want to import. The images must be into that archive in a flat structure, having no folders."));
$step1->add(new WZUploadArchive("upload"));
$step2 = new STCheckArchive();
$step2->setTitle($lang->get("wzt_ach_check", "Check Archive"));
$step2->setExplanation($lang->get("wze_arch_check", "Please control the result of the archive checks and press next if you want to resume."));
$step3 = new Step();
$step3->setTitle($lang->get("wzt_dest_folder", "Select destination folder"));
$step3->setExplanation($lang->get("wze_dest_folder", "Please select the folder, where all the new pictures will be copied to."));
$folders = array();
createFolders($folders, ' / ', 0);
$step3->add(new WZSelect('folder', $lang->get("dest_folder", "Destination folder"), $folders));
$step4 = new STImportImages();
$step4->setTitle($lang->get("wzt_imp_imag", "Importing images..."));
$wizard->add($step1);
$wizard->add($step2);
$wizard->add($step3);
示例3: auth
*
* N/X is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with N/X; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**********************************************************************/
require_once "../../config.inc.php";
require_once $c["path"] . "modules/channels/st_import.php";
$auth = new auth("ANY");
$page = new page("Import Articles");
$wizard = new Wizard($lang->get("wz_articleimport", "Article-Import Wizard"));
$wizard->setTitleText($lang->get("wz_articleimport_title", "This wizard is used to import article data to a channel from different sources. You can import from existing Multipages or other channels. You have to make sure that the corresponding templates are compatible."));
////// STEP 1 //////
$step = new STSelectResource("CHANNELCATEGORY");
$step->setTitle($lang->get("wzt_articleimport_target", "Select target channel"));
$step->setExplanation($lang->get("wze_articleimport_target", "On the right you need to select the target channel. All imported articles will be stored within this channel."));
////// STEP 2 //////
$step2 = new Step();
$step2->setTitle($lang->get("wzt_articleimport_srctype", "Select source type"));
$step2->setExplanation($lang->get("wze_articleimport_srctype", "Please select the type of source you want to import the articles from."));
$source_types[0][0] = $lang->get("multipage", "Multipage");
$source_types[0][1] = "PAGE";
//$source_types[1][0] = $lang->get("channel");
//$source_types[1][1] = "CHANNEL";
//$source_types[2][0] = $lang->get("cluster");
//$source_types[2][1] = "CLUSTER";
$step2->add(new WZRadio("source_type", $source_types));