classes/fields/email.php 1 location
|
@@ 108-117 (lines=10) @@
|
| 105 |
|
* @return array |
| 106 |
|
* @since 2.0 |
| 107 |
|
*/ |
| 108 |
|
public function schema ( $options = null ) { |
| 109 |
|
$length = (int) pods_var( self::$type . '_max_length', $options, 255 ); |
| 110 |
|
|
| 111 |
|
$schema = 'VARCHAR(' . $length . ')'; |
| 112 |
|
|
| 113 |
|
if ( 255 < $length || $length < 1 ) |
| 114 |
|
$schema = 'LONGTEXT'; |
| 115 |
|
|
| 116 |
|
return $schema; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
/** |
| 120 |
|
* Customize output of the form field |
classes/fields/password.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* @return array |
| 94 |
|
* @since 2.0 |
| 95 |
|
*/ |
| 96 |
|
public function schema ( $options = null ) { |
| 97 |
|
$length = (int) pods_var( self::$type . '_max_length', $options, 255 ); |
| 98 |
|
|
| 99 |
|
$schema = 'VARCHAR(' . $length . ')'; |
| 100 |
|
|
| 101 |
|
if ( 255 < $length || $length < 1 ) |
| 102 |
|
$schema = 'LONGTEXT'; |
| 103 |
|
|
| 104 |
|
return $schema; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* Customize output of the form field |
classes/fields/phone.php 1 location
|
@@ 133-142 (lines=10) @@
|
| 130 |
|
* @return array |
| 131 |
|
* @since 2.0 |
| 132 |
|
*/ |
| 133 |
|
public function schema ( $options = null ) { |
| 134 |
|
$length = (int) pods_var( self::$type . '_max_length', $options, 25, null, true ); |
| 135 |
|
|
| 136 |
|
$schema = 'VARCHAR(' . $length . ')'; |
| 137 |
|
|
| 138 |
|
if ( 255 < $length || $length < 1 ) |
| 139 |
|
$schema = 'LONGTEXT'; |
| 140 |
|
|
| 141 |
|
return $schema; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
/** |
| 145 |
|
* Customize output of the form field |
classes/fields/text.php 1 location
|
@@ 127-136 (lines=10) @@
|
| 124 |
|
* @return array |
| 125 |
|
* @since 2.0 |
| 126 |
|
*/ |
| 127 |
|
public function schema ( $options = null ) { |
| 128 |
|
$length = (int) pods_var( self::$type . '_max_length', $options, 255 ); |
| 129 |
|
|
| 130 |
|
$schema = 'VARCHAR(' . $length . ')'; |
| 131 |
|
|
| 132 |
|
if ( 255 < $length || $length < 1 ) |
| 133 |
|
$schema = 'LONGTEXT'; |
| 134 |
|
|
| 135 |
|
return $schema; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* Change the way the value of the field is displayed with Pods::get |
classes/fields/website.php 1 location
|
@@ 141-150 (lines=10) @@
|
| 138 |
|
* @return array |
| 139 |
|
* @since 2.0 |
| 140 |
|
*/ |
| 141 |
|
public function schema ( $options = null ) { |
| 142 |
|
$length = (int) pods_var( self::$type . '_max_length', $options, 255 ); |
| 143 |
|
|
| 144 |
|
$schema = 'VARCHAR(' . $length . ')'; |
| 145 |
|
|
| 146 |
|
if ( 255 < $length || $length < 1 ) |
| 147 |
|
$schema = 'LONGTEXT'; |
| 148 |
|
|
| 149 |
|
return $schema; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
/** |
| 153 |
|
* Change the way the value of the field is displayed with Pods::get |