[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/phpbb/db/migration/data/v310/ -> profilefield_youtube.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\db\migration\data\v310;
  15  
  16  class profilefield_youtube extends \phpbb\db\migration\profilefield_base_migration
  17  {
  18  	static public function depends_on()
  19      {
  20          return array(
  21              '\phpbb\db\migration\data\v310\profilefield_contact_field',
  22              '\phpbb\db\migration\data\v310\profilefield_show_novalue',
  23              '\phpbb\db\migration\data\v310\profilefield_types',
  24          );
  25      }
  26  
  27  	public function update_data()
  28      {
  29          return array(
  30              array('custom', array(array($this, 'create_custom_field'))),
  31          );
  32      }
  33  
  34      protected $profilefield_name = 'phpbb_youtube';
  35  
  36      protected $profilefield_database_type = array('VCHAR', '');
  37  
  38      protected $profilefield_data = array(
  39          'field_name'            => 'phpbb_youtube',
  40          'field_type'            => 'profilefields.type.string',
  41          'field_ident'            => 'phpbb_youtube',
  42          'field_length'            => '20',
  43          'field_minlen'            => '3',
  44          'field_maxlen'            => '60',
  45          'field_novalue'            => '',
  46          'field_default_value'    => '',
  47          'field_validation'        => '[a-zA-Z][\w\.,\-_]+',
  48          'field_required'        => 0,
  49          'field_show_novalue'    => 0,
  50          'field_show_on_reg'        => 0,
  51          'field_show_on_pm'        => 1,
  52          'field_show_on_vt'        => 1,
  53          'field_show_profile'    => 1,
  54          'field_hide'            => 0,
  55          'field_no_view'            => 0,
  56          'field_active'            => 1,
  57          'field_is_contact'        => 1,
  58          'field_contact_desc'    => 'VIEW_YOUTUBE_CHANNEL',
  59          'field_contact_url'        => 'http://youtube.com/user/%s',
  60      );
  61  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1