• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP BoolPropertyItem类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中BoolPropertyItem的典型用法代码示例。如果您正苦于以下问题:PHP BoolPropertyItem类的具体用法?PHP BoolPropertyItem怎么用?PHP BoolPropertyItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BoolPropertyItem类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     if ($GLOBALS['cfg']['Import']['ldi_local_option'] == 'auto') {
         $GLOBALS['cfg']['Import']['ldi_local_option'] = false;
         $result = $GLOBALS['dbi']->tryQuery('SHOW VARIABLES LIKE \'local\\_infile\';');
         if ($result != false && $GLOBALS['dbi']->numRows($result) > 0) {
             $tmp = $GLOBALS['dbi']->fetchRow($result);
             if ($tmp[1] == 'ON') {
                 $GLOBALS['cfg']['Import']['ldi_local_option'] = true;
             }
         }
         $GLOBALS['dbi']->freeResult($result);
         unset($result);
     }
     $generalOptions = parent::setProperties();
     $this->properties->setText('CSV using LOAD DATA');
     $this->properties->setExtension('ldi');
     $leaf = new TextPropertyItem();
     $leaf->setName("columns");
     $leaf->setText(__('Column names: '));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("ignore");
     $leaf->setText(__('Do not abort on INSERT error'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("local_option");
     $leaf->setText(__('Use LOCAL keyword'));
     $generalOptions->addProperty($leaf);
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:36,代码来源:ImportLdi.class.php


示例2: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     $this->_setAnalyze(false);
     if ($GLOBALS['plugin_param'] !== 'table') {
         $this->_setAnalyze(true);
     }
     $generalOptions = parent::setProperties();
     $this->properties->setText('CSV');
     $this->properties->setExtension('csv');
     if ($GLOBALS['plugin_param'] !== 'table') {
         $leaf = new BoolPropertyItem();
         $leaf->setName("col_names");
         $leaf->setText(__('The first line of the file contains the table column names' . ' <i>(if this is unchecked, the first line will become part' . ' of the data)</i>'));
         $generalOptions->addProperty($leaf);
     } else {
         $hint = new PMA_Message(__('If the data in each row of the file is not' . ' in the same order as in the database, list the corresponding' . ' column names here. Column names must be separated by commas' . ' and not enclosed in quotations.'));
         $leaf = new TextPropertyItem();
         $leaf->setName("columns");
         $leaf->setText(__('Column names: ') . PMA_Util::showHint($hint));
         $generalOptions->addProperty($leaf);
     }
     $leaf = new BoolPropertyItem();
     $leaf->setName("ignore");
     $leaf->setText(__('Do not abort on INSERT error'));
     $generalOptions->addProperty($leaf);
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:32,代码来源:ImportCsv.class.php


示例3: setProperties

 /**
  * Sets the export CSV properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/TextPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     include_once "{$props}/options/items/HiddenPropertyItem.class.php";
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('CSV');
     $exportPluginProperties->setExtension('csv');
     $exportPluginProperties->setMimeType('text/comma-separated-values');
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create leaf items and add them to the group
     $leaf = new TextPropertyItem();
     $leaf->setName("separator");
     $leaf->setText(__('Columns separated with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("enclosed");
     $leaf->setText(__('Columns enclosed with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("escaped");
     $leaf->setText(__('Columns escaped with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("terminated");
     $leaf->setText(__('Lines terminated with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName('null');
     $leaf->setText(__('Replace NULL with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName('removeCRLF');
     $leaf->setText(__('Remove carriage return/line feed characters within columns'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName('columns');
     $leaf->setText(__('Put columns names in the first row'));
     $generalOptions->addProperty($leaf);
     $leaf = new HiddenPropertyItem();
     $leaf->setName('structure_or_data');
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($generalOptions);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:65,代码来源:ExportCsv.class.php


示例4: setProperties

 /**
  * Sets the schema export SVG properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/SchemaPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $schemaPluginProperties = new SchemaPluginProperties();
     $schemaPluginProperties->setText('SVG');
     $schemaPluginProperties->setExtension('svg');
     $schemaPluginProperties->setMimeType('application/svg');
     // create the root group that will be the options field for
     // $schemaPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // specific options main group
     $specificOptions = new OptionsPropertyMainGroup();
     $specificOptions->setName("general_opts");
     // add options common to all plugins
     $this->addCommonOptions($specificOptions);
     // create leaf items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName('all_tables_same_width');
     $leaf->setText(__('Same width for all tables'));
     $specificOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($specificOptions);
     // set the options for the schema export plugin property item
     $schemaPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $schemaPluginProperties;
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:37,代码来源:SchemaSvg.class.php


示例5: setProperties

 /**
  * Sets the schema export PDF properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/SchemaPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     include_once "{$props}/options/items/SelectPropertyItem.class.php";
     $schemaPluginProperties = new SchemaPluginProperties();
     $schemaPluginProperties->setText('PDF');
     $schemaPluginProperties->setExtension('pdf');
     $schemaPluginProperties->setMimeType('application/pdf');
     // create the root group that will be the options field for
     // $schemaPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // specific options main group
     $specificOptions = new OptionsPropertyMainGroup();
     $specificOptions->setName("general_opts");
     // add options common to all plugins
     $this->addCommonOptions($specificOptions);
     // create leaf items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName('all_tables_same_width');
     $leaf->setText(__('Same width for all tables'));
     $specificOptions->addProperty($leaf);
     $leaf = new SelectPropertyItem();
     $leaf->setName("orientation");
     $leaf->setText(__('Orientation'));
     $leaf->setValues(array('L' => __('Landscape'), 'P' => __('Portrait')));
     $specificOptions->addProperty($leaf);
     $leaf = new SelectPropertyItem();
     $leaf->setName("paper");
     $leaf->setText(__('Paper size'));
     $leaf->setValues($this->_getPaperSizeArray());
     $specificOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName('show_grid');
     $leaf->setText(__('Show grid'));
     $specificOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName('with_doc');
     $leaf->setText(__('Data Dictionary'));
     $specificOptions->addProperty($leaf);
     $leaf = new SelectPropertyItem();
     $leaf->setName("table_order");
     $leaf->setText(__('Order of the tables'));
     $leaf->setValues(array('' => __('None'), 'name_asc' => __('Name (Ascending)'), 'name_desc' => __('Name (Descending)')));
     $specificOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($specificOptions);
     // set the options for the schema export plugin property item
     $schemaPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $schemaPluginProperties;
 }
开发者ID:xtreme-jamil-shamy,项目名称:phpmyadmin-cf,代码行数:61,代码来源:SchemaPdf.class.php


示例6: addCommonOptions

 /**
  * Adds export options common to all plugins.
  *
  * @param OptionsPropertyMainGroup $propertyGroup property group
  *
  * @return void
  */
 protected function addCommonOptions(OptionsPropertyMainGroup $propertyGroup)
 {
     $leaf = new BoolPropertyItem();
     $leaf->setName('show_color');
     $leaf->setText(__('Show color'));
     $propertyGroup->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName('show_keys');
     $leaf->setText(__('Only show keys'));
     $propertyGroup->addProperty($leaf);
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:18,代码来源:SchemaPlugin.class.php


示例7: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return OptionsPropertyMainGroup OptionsPropertyMainGroup object of the plugin
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     include_once "{$props}/options/items/TextPropertyItem.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $importPluginProperties
     // this will be shown as "Format specific options"
     $importSpecificOptions = new OptionsPropertyRootGroup();
     $importSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create common items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName("replace");
     $leaf->setText(__('Replace table data with file'));
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("terminated");
     $leaf->setText(__('Columns separated with:'));
     $leaf->setSize(2);
     $leaf->setLen(2);
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("enclosed");
     $leaf->setText(__('Columns enclosed with:'));
     $leaf->setSize(2);
     $leaf->setLen(2);
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("escaped");
     $leaf->setText(__('Columns escaped with:'));
     $leaf->setSize(2);
     $leaf->setLen(2);
     $generalOptions->addProperty($leaf);
     $leaf = new TextPropertyItem();
     $leaf->setName("new_line");
     $leaf->setText(__('Lines terminated with:'));
     $leaf->setSize(2);
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $importSpecificOptions->addProperty($generalOptions);
     // set the options for the import plugin property item
     $importPluginProperties->setOptions($importSpecificOptions);
     $this->properties = $importPluginProperties;
     return $generalOptions;
 }
开发者ID:yszar,项目名称:linuxwp,代码行数:59,代码来源:AbstractImportCsv.class.php


示例8: setProperties

 /**
  * Sets the export HTML-Word properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/RadioPropertyItem.class.php";
     include_once "{$props}/options/items/TextPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('Microsoft Word 2000');
     $exportPluginProperties->setExtension('doc');
     $exportPluginProperties->setMimeType('application/vnd.ms-word');
     $exportPluginProperties->setForceFile(true);
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // what to dump (structure/data/both)
     $dumpWhat = new OptionsPropertyMainGroup();
     $dumpWhat->setName("dump_what");
     $dumpWhat->setText(__('Dump table'));
     // create primary items and add them to the group
     $leaf = new RadioPropertyItem();
     $leaf->setName("structure_or_data");
     $leaf->setValues(array('structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')));
     $dumpWhat->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($dumpWhat);
     // data options main group
     $dataOptions = new OptionsPropertyMainGroup();
     $dataOptions->setName("dump_what");
     $dataOptions->setText(__('Data dump options'));
     $dataOptions->setForce('structure');
     // create primary items and add them to the group
     $leaf = new TextPropertyItem();
     $leaf->setName("null");
     $leaf->setText(__('Replace NULL with:'));
     $dataOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("columns");
     $leaf->setText(__('Put columns names in the first row'));
     $dataOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($dataOptions);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:nhodges,项目名称:phpmyadmin,代码行数:56,代码来源:ExportHtmlword.class.php


示例9: setProperties

 /**
  * Sets the export MediaWiki properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertySubgroup.class.php";
     include_once "{$props}/options/items/MessageOnlyPropertyItem.class.php";
     include_once "{$props}/options/items/RadioPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('MediaWiki Table');
     $exportPluginProperties->setExtension('mediawiki');
     $exportPluginProperties->setMimeType('text/plain');
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     $generalOptions->setText(__('Dump table'));
     // what to dump (structure/data/both)
     $subgroup = new OptionsPropertySubgroup();
     $subgroup->setName("dump_table");
     $subgroup->setText("Dump table");
     $leaf = new RadioPropertyItem();
     $leaf->setName('structure_or_data');
     $leaf->setValues(array('structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')));
     $subgroup->setSubgroupHeader($leaf);
     $generalOptions->addProperty($subgroup);
     // export table name
     $leaf = new BoolPropertyItem();
     $leaf->setName("caption");
     $leaf->setText(__('Export table names'));
     $generalOptions->addProperty($leaf);
     // export table headers
     $leaf = new BoolPropertyItem();
     $leaf->setName("headers");
     $leaf->setText(__('Export table headers'));
     $generalOptions->addProperty($leaf);
     //add the main group to the root group
     $exportSpecificOptions->addProperty($generalOptions);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:yszar,项目名称:linuxwp,代码行数:54,代码来源:ExportMediawiki.class.php


示例10: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/SelectPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setText('SQL');
     $importPluginProperties->setExtension('sql');
     $importPluginProperties->setOptionsText(__('Options'));
     $compats = $GLOBALS['dbi']->getCompatibilities();
     if (count($compats) > 0) {
         $values = array();
         foreach ($compats as $val) {
             $values[$val] = $val;
         }
         // create the root group that will be the options field for
         // $importPluginProperties
         // this will be shown as "Format specific options"
         $importSpecificOptions = new OptionsPropertyRootGroup();
         $importSpecificOptions->setName("Format Specific Options");
         // general options main group
         $generalOptions = new OptionsPropertyMainGroup();
         $generalOptions->setName("general_opts");
         // create primary items and add them to the group
         $leaf = new SelectPropertyItem();
         $leaf->setName("compatibility");
         $leaf->setText(__('SQL compatibility mode:'));
         $leaf->setValues($values);
         $leaf->setDoc(array('manual_MySQL_Database_Administration', 'Server_SQL_mode'));
         $generalOptions->addProperty($leaf);
         $leaf = new BoolPropertyItem();
         $leaf->setName("no_auto_value_on_zero");
         $leaf->setText(__('Do not use <code>AUTO_INCREMENT</code> for zero values'));
         $leaf->setDoc(array('manual_MySQL_Database_Administration', 'Server_SQL_mode', 'sqlmode_no_auto_value_on_zero'));
         $generalOptions->addProperty($leaf);
         // add the main group to the root group
         $importSpecificOptions->addProperty($generalOptions);
         // set the options for the import plugin property item
         $importPluginProperties->setOptions($importSpecificOptions);
     }
     $this->properties = $importPluginProperties;
 }
开发者ID:AtomPy,项目名称:AtomPySite,代码行数:51,代码来源:ImportSql.class.php


示例11: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     if ($GLOBALS['cfg']['Import']['ldi_local_option'] == 'auto') {
         $GLOBALS['cfg']['Import']['ldi_local_option'] = false;
         $result = PMA_DBI_try_query('SHOW VARIABLES LIKE \'local\\_infile\';');
         if ($result != false && PMA_DBI_num_rows($result) > 0) {
             $tmp = PMA_DBI_fetch_row($result);
             if ($tmp[1] == 'ON') {
                 $GLOBALS['cfg']['Import']['ldi_local_option'] = true;
             }
         }
         PMA_DBI_free_result($result);
         unset($result);
     }
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     include_once "{$props}/options/items/TextPropertyItem.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setText('CSV using LOAD DATA');
     $importPluginProperties->setExtension('ldi');
     $importPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $importPluginProperties
     // this will be shown as "Format specific options"
     $importSpecificOptions = new OptionsPropertyRootGroup();
     $importSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create primary items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName("replace");
     $leaf->setText(__('Replace table data with file'));
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $importSpecificOptions->addProperty($generalOptions);
     // set the options for the import plugin property item
     $importPluginProperties->setOptions($importSpecificOptions);
     $this->properties = $importPluginProperties;
 }
开发者ID:rajatsinghal,项目名称:phpmyadmin,代码行数:49,代码来源:ImportLdi.class.php


示例12: setProperties

 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setText('OpenDocument Spreadsheet');
     $importPluginProperties->setExtension('ods');
     $importPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $importPluginProperties
     // this will be shown as "Format specific options"
     $importSpecificOptions = new OptionsPropertyRootGroup();
     $importSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create primary items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName("col_names");
     $leaf->setText(__('The first line of the file contains the table column names' . ' <i>(if this is unchecked, the first line will become part' . ' of the data)</i>'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("empty_rows");
     $leaf->setText(__('Do not import empty rows'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("recognize_percentages");
     $leaf->setText(__('Import percentages as proper decimals <i>(ex. 12.00% to .12)</i>'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("recognize_currency");
     $leaf->setText(__('Import currencies <i>(ex. $5.00 to 5.00)</i>'));
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $importSpecificOptions->addProperty($generalOptions);
     // set the options for the import plugin property item
     $importPluginProperties->setOptions($importSpecificOptions);
     $this->properties = $importPluginProperties;
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:48,代码来源:ImportOds.class.php


示例13: setProperties

 /**
  * Sets the export ODS properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/TextPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     include_once "{$props}/options/items/HiddenPropertyItem.class.php";
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('OpenDocument Spreadsheet');
     $exportPluginProperties->setExtension('ods');
     $exportPluginProperties->setMimeType('application/vnd.oasis.opendocument.spreadsheet');
     $exportPluginProperties->setForceFile(true);
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create primary items and add them to the group
     $leaf = new TextPropertyItem();
     $leaf->setName("null");
     $leaf->setText(__('Replace NULL with:'));
     $generalOptions->addProperty($leaf);
     $leaf = new BoolPropertyItem();
     $leaf->setName("columns");
     $leaf->setText(__('Put columns names in the first row'));
     $generalOptions->addProperty($leaf);
     $leaf = new HiddenPropertyItem();
     $leaf->setName("structure_or_data");
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($generalOptions);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:nobodypb,项目名称:phpmyadmin,代码行数:46,代码来源:ExportOds.class.php


示例14: setProperties

 /**
  * Sets the export JSON properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/HiddenPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('JSON');
     $exportPluginProperties->setExtension('json');
     $exportPluginProperties->setMimeType('text/plain');
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create primary items and add them to the group
     $leaf = new HiddenPropertyItem();
     $leaf->setName("structure_or_data");
     $generalOptions->addProperty($leaf);
     // JSON_PRETTY_PRINT is available since 5.4.0
     if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
         $leaf = new BoolPropertyItem();
         $leaf->setName('pretty_print');
         $leaf->setText(__('Output pretty-printed JSON (Use human-readable formatting)'));
         $generalOptions->addProperty($leaf);
     }
     // add the main group to the root group
     $exportSpecificOptions->addProperty($generalOptions);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:hewenhao2008,项目名称:phpmyadmin,代码行数:43,代码来源:ExportJson.class.php


示例15: setProperties

 /**
  * Sets the export SQL properties
  *
  * @return void
  */
 protected function setProperties()
 {
     global $plugin_param;
     $hide_sql = false;
     $hide_structure = false;
     if ($plugin_param['export_type'] == 'table' && !$plugin_param['single_table']) {
         $hide_structure = true;
         $hide_sql = true;
     }
     if (!$hide_sql) {
         $props = 'libraries/properties/';
         include_once "{$props}/plugins/ExportPluginProperties.class.php";
         include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
         include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
         include_once "{$props}/options/groups/OptionsPropertySubgroup.class.php";
         include_once "{$props}/options/items/BoolPropertyItem.class.php";
         include_once "{$props}/options/items/MessageOnlyPropertyItem.class.php";
         include_once "{$props}/options/items/RadioPropertyItem.class.php";
         include_once "{$props}/options/items/SelectPropertyItem.class.php";
         include_once "{$props}/options/items/TextPropertyItem.class.php";
         $exportPluginProperties = new ExportPluginProperties();
         $exportPluginProperties->setText('SQL');
         $exportPluginProperties->setExtension('sql');
         $exportPluginProperties->setMimeType('text/x-sql');
         $exportPluginProperties->setOptionsText(__('Options'));
         // create the root group that will be the options field for
         // $exportPluginProperties
         // this will be shown as "Format specific options"
         $exportSpecificOptions = new OptionsPropertyRootGroup();
         $exportSpecificOptions->setName("Format Specific Options");
         // general options main group
         $generalOptions = new OptionsPropertyMainGroup();
         $generalOptions->setName("general_opts");
         // comments
         $subgroup = new OptionsPropertySubgroup();
         $subgroup->setName("include_comments");
         $leaf = new BoolPropertyItem();
         $leaf->setName('include_comments');
         $leaf->setText(__('Display comments <i>(includes info such as export' . ' timestamp, PHP version, and server version)</i>'));
         $subgroup->setSubgroupHeader($leaf);
         $leaf = new TextPropertyItem();
         $leaf->setName('header_comment');
         $leaf->setText(__('Additional custom header comment (\\n splits lines):'));
         $subgroup->addProperty($leaf);
         $leaf = new BoolPropertyItem();
         $leaf->setName('dates');
         $leaf->setText(__('Include a timestamp of when databases were created, last' . ' updated, and last checked'));
         $subgroup->addProperty($leaf);
         if (!empty($GLOBALS['cfgRelation']['relation'])) {
             $leaf = new BoolPropertyItem();
             $leaf->setName('relation');
             $leaf->setText(__('Display foreign key relationships'));
             $subgroup->addProperty($leaf);
         }
         if (!empty($GLOBALS['cfgRelation']['mimework'])) {
             $leaf = new BoolPropertyItem();
             $leaf->setName('mime');
             $leaf->setText(__('Display MIME types'));
             $subgroup->addProperty($leaf);
         }
         $generalOptions->addProperty($subgroup);
         // enclose in a transaction
         $leaf = new BoolPropertyItem();
         $leaf->setName("use_transaction");
         $leaf->setText(__('Enclose export in a transaction'));
         $leaf->setDoc(array('programs', 'mysqldump', 'option_mysqldump_single-transaction'));
         $generalOptions->addProperty($leaf);
         // disable foreign key checks
         $leaf = new BoolPropertyItem();
         $leaf->setName("disable_fk");
         $leaf->setText(__('Disable foreign key checks'));
         $leaf->setDoc(array('manual_MySQL_Database_Administration', 'server-system-variables', 'sysvar_foreign_key_checks'));
         $generalOptions->addProperty($leaf);
         // compatibility maximization
         $compats = PMA_DBI_getCompatibilities();
         if (count($compats) > 0) {
             $values = array();
             foreach ($compats as $val) {
                 $values[$val] = $val;
             }
             $leaf = new SelectPropertyItem();
             $leaf->setName("compatibility");
             $leaf->setText(__('Database system or older MySQL server to maximize output' . ' compatibility with:'));
             $leaf->setValues($values);
             $leaf->setDoc(array('manual_MySQL_Database_Administration', 'Server_SQL_mode'));
             $generalOptions->addProperty($leaf);
             unset($values);
         }
         // server export options
         if ($plugin_param['export_type'] == 'server') {
             $leaf = new BoolPropertyItem();
             $leaf->setName("drop_database");
             $leaf->setText(sprintf(__('Add %s statement'), '<code>DROP DATABASE</code>'));
             $generalOptions->addProperty($leaf);
         }
//.........这里部分代码省略.........
开发者ID:fanscky,项目名称:HTPMS,代码行数:101,代码来源:ExportSql.class.php


示例16: setProperties

 /**
  * Sets the export XML properties
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ExportPluginProperties.class.php";
     include_once "{$props}/options/groups/OptionsPropertyRootGroup.class.php";
     include_once "{$props}/options/groups/OptionsPropertyMainGroup.class.php";
     include_once "{$props}/options/items/HiddenPropertyItem.class.php";
     include_once "{$props}/options/items/BoolPropertyItem.class.php";
     // create the export plugin property item
     $exportPluginProperties = new ExportPluginProperties();
     $exportPluginProperties->setText('XML');
     $exportPluginProperties->setExtension('xml');
     $exportPluginProperties->setMimeType('text/xml');
     $exportPluginProperties->setOptionsText(__('Options'));
     // create the root group that will be the options field for
     // $exportPluginProperties
     // this will be shown as "Format specific options"
     $exportSpecificOptions = new OptionsPropertyRootGroup();
     $exportSpecificOptions->setName("Format Specific Options");
     // general options main group
     $generalOptions = new OptionsPropertyMainGroup();
     $generalOptions->setName("general_opts");
     // create primary items and add them to the group
     $leaf = new HiddenPropertyItem();
     $leaf->setName("structure_or_data");
     $generalOptions->addProperty($leaf);
     // add the main group to the root group
     $exportSpecificOptions->addProperty($generalOptions);
     // export structure main group
     $structure = new OptionsPropertyMainGroup();
     $structure->setName("structure");
     $structure->setText(__('Object creation options (all are recommended)'));
     // create primary items and add them to the group
     if (!PMA_DRIZZLE) {
         $leaf = new BoolPropertyItem();
         $leaf->setName("export_events");
         $leaf->setText(__('Events'));
         $structure->addProperty($leaf);
         $leaf = new BoolPropertyItem();
         $leaf->setName("export_functions");
         $leaf->setText(__('Functions'));
         $structure->addProperty($leaf);
         $leaf = new BoolPropertyItem();
         $leaf->setName("export_procedures");
         $leaf->setText(__('Procedures'));
         $structure->addProperty($leaf);
     }
     $leaf = new BoolPropertyItem();
     $leaf->setName("export_tables");
     $leaf->setText(__('Tables'));
     $structure->addProperty($leaf);
     if (!PMA_DRIZZLE) {
         $leaf = new BoolPropertyItem();
         $leaf->setName("export_triggers");
         $leaf->setText(__('Triggers'));
         $structure->addProperty($leaf);
         $leaf = new BoolPropertyItem();
         $leaf->setName("export_views");
         $leaf->setText(__('Views'));
         $structure->addProperty($leaf);
     }
     $exportSpecificOptions->addProperty($structure);
     // data main group
     $data = new OptionsPropertyMainGroup();
     $data->setName("data");
     $data->setText(__('Data dump options'));
     // create primary items and add them to the group
     $leaf = new BoolPropertyItem();
     $leaf->setName("export_contents");
     $leaf->setText(__('Export contents'));
     $data->addProperty($leaf);
     $exportSpecificOptions->addProperty($data);
     // set the options for the export plugin property item
     $exportPluginProperties->setOptions($exportSpecificOptions);
     $this->properties = $exportPluginProperties;
 }
开发者ID:FuhrerMalkovich,项目名称:Blogpost,代码行数:81,代码来源:ExportXml.class.php


示例17: setProperties

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Booster类代码示例发布时间:2022-05-23
下一篇:
PHP BookstoreEmptyTestBase类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap