CakePHP Cookbook 3.x
Registry Objects Loading Objects Triggering Callbacks Disabling Callbacks Text Convert Strings into ASCII Creating URL Safe Strings Generating UUIDs Simple String Parsing Formatting Strings Wrapping Text adding validation rules to a username field can now look like: $validator->email('username') ->ascii('username') ->lengthBetween('username', [4, 8]); Console Improvements Shell::info(), Shell::warn() Validation::latitude() was added. Validation::longitude() was added. Validation::isInteger() was added. Validation::ascii() was added. Validation::utf8() was added. Testing TestFixture model key is now supported to retrieve0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908 38 Text 909 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910 Creating adding validation rules to a username field can now look like: $validator->email('username') ->ascii('username') ->lengthBetween('username', [4, 8]); Console Improvements • Shell::info(), Shell::warn() added. • Validation::longitude() was added. • Validation::isInteger() was added. • Validation::ascii() was added. • Validation::utf8() was added. 3.1 Migration Guide 73 CakePHP Cookbook Documentation0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xObjects Loading Objects Triggering Callbacks Disabling Callbacks Text Text Convert Strings into ASCII Text::transliterate Creating URL Safe Strings Text::slug Generating UUIDs Text::uuid Simple compatibility. Built-In Helpers Table Helper The TableHelper assists in making well formatted ASCII art tables. Using it is pretty simple: $data = [ ['Header 1', 'Header', 'Long Header'], ['short' database table, having this schema: CREATE TABLE `sessions` ( `id` char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `created` datetime DEFAULT CURRENT_TIMESTAMP, -- Optional `modified` datetime0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Objects Loading Objects Triggering Callbacks Disabling Callbacks Text Text Convert Strings into ASCII Text::transliterate Creating URL Safe Strings Text::slug Generating UUIDs Text::uuid Simple compatibility. Built-In Helpers Table Helper The TableHelper assists in making well formatted ASCII art tables. Using it is pretty simple: $data = [ ['Header 1', 'Header', 'Long Header'], ['short' database table, having this schema: CREATE TABLE `sessions` ( `id` char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, `created` datetime DEFAULT CURRENT_TIMESTAMP, -- Optional `modified` datetime0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 38 Text 791 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792 Creating Documentation, Release 5.x Built-In Helpers Table Helper The TableHelper assists in making well formatted ASCII art tables. Using it is pretty simple: $data = [ ['Header 1', 'Header', 'Long Header'], ['short' database table, having this schema: CREATE TABLE �sessions� ( �id� char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, �created� datetime DEFAULT CURRENT_TIMESTAMP, -- Optional �modified� datetime0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902 38 Text 903 Convert Strings into ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904 Creating compatibility. Built-In Helpers Table Helper The TableHelper assists in making well formatted ASCII art tables. Using it is pretty simple: $data = [ ['Header 1', 'Header', 'Long Header'], ['short' database table, having this schema: CREATE TABLE �sessions� ( �id� char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, �created� datetime DEFAULT CURRENT_TIMESTAMP, -- Optional �modified� datetime0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
data is checked by number of characters, not number of bytes. If you want to validate against pure ASCII input instead of UTF-8 compatible, you will have to write your own custom validators. static Val length here is number of characters, not the number of bytes. If you want to validate against pure ASCII input instead of UTF-8 compatible, you will have to write your own custom validators. static Val the file. static File::prepare(string $data, boolean $forceWindows = false) string Prepares a ascii string for writing. Converts line endings to the correct terminator for the current platform. For0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
data is checked by number of characters, not number of bytes. If you want to validate against pure ASCII input instead of UTF-8 compatible, you will have to write your own custom validators. static Val length here is number of characters, not the number of bytes. If you want to validate against pure ASCII input instead of UTF-8 compatible, you will have to write your own custom validators. static Val static File::prepare(string $data, boolean $forceWindows = false) Return type string Prepares a ascii string for writing. Converts line endings to the correct terminator for the current platform. For0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













