#6525: Deprecate ife(), a(), am(), r(), up(), low(), and e() ---------------------------------------------------+------------------------ Reporter: michaelc | Owner: Type: Enhancement | Status: new Priority: Low | Milestone: 1.3.x.x Component: Core Libs | Version: 1.2 Final Severity: Minor | Resolution: Keywords: deprecate ife am a r up low echo e | Php_version: PHP 5 Cake_version: | ---------------------------------------------------+------------------------ Comment (by michaelc):
Progress has been made, here's the current status as of 1.2.5: {{{ cake/basics.php: switch (low($target)) { cake/console/libs/tasks/db_config.php: if (low($persistent) == 'n') { cake/console/libs/tasks/db_config.php: if (low($port) == 'n') { cake/console/libs/tasks/db_config.php: if (low($prefix) == 'n') { cake/console/libs/tasks/db_config.php: if (low($encoding) == 'n') { cake/console/libs/tasks/db_config.php: if (low($schema) == 'n') { cake/console/libs/tasks/db_config.php: if (low($doneYet == 'n')) { cake/console/libs/templates/skel/views/layouts/xml/default.ctp:<?php e($xml->header()); ?> cake/console/libs/acl.php: $id = ife(is_numeric($this->args[1]), intval($this->args[1]), $this->args[1]); cake/console/libs/acl.php: $key = ife(is_numeric($this->args[1]), $secondary_id, 'alias'); cake/console/libs/acl.php: } elseif (isset($commands[low($this->args[0])])) { cake/console/libs/acl.php: $this->out($commands[low($this->args[0])] . "\n\n"); cake/console/libs/acl.php: $key = (ife(is_numeric($this->args[1]), $secondary_id, 'alias')); cake/console/libs/acl.php: $aro = ife(is_numeric($this->args[0]), intval($this->args[0]), $this->args[0]); cake/console/libs/acl.php: $aco = ife(is_numeric($this->args[1]), intval($this->args[1]), $this->args[1]); cake/console/libs/acl.php: $vars['secondary_id'] = ife(strtolower($class) == 'aro', 'foreign_key', 'object_id'); cake/console/libs/api.php: } elseif (isset($commands[low($this->args[1])])) { cake/console/libs/api.php: $this->out($commands[low($this->args[1])] . "\n\n"); cake/console/libs/console.php: $class = Inflector::camelize(r('.php', '', $model)); cake/libs/view/helpers/javascript.php: $val = ife($val, 'true', 'false'); cake/libs/validation.php: $_this->regex = '/^(?:(?:https?|ftps?|file|news|gopher):\/\/)' . ife($strict, '', '?') . cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/'))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/?foo=bar'))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/?foo=bar'))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/?foo=23&foobar=42'))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => 'GET', 'uri' => 'http://www.google.com/', 'auth' => array('user' => 'foo', 'pass' => 'bar')))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => $method, 'uri' => 'http://www.google.com/', 'body' => array()))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->{low($method)}('http://www.google.com/'); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => $method, 'uri' => 'http://www.google.com/', 'body' => array('Foo' => 'bar')))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->{low($method)}('http://www.google.com/', array('Foo' => 'bar')); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->expect('request', a(array('method' => $method, 'uri' => 'http://www.google.com/', 'body' => null, 'line' => 'Hey Server'))); cake/tests/cases/libs/http_socket.test.php: $this->RequestSocket->{low($method)}('http://www.google.com/', null, array('line' => 'Hey Server')); cake/tests/cases/libs/model/models.php: return (!empty($value) && strpos(low($value['title']), 'title-') === 0); cake/tests/test_app/views/layouts/xml/default.ctp:<?php e($xml->header()); ?> }}} -- Ticket URL: <https://trac.cakephp.org/ticket/6525#comment:8> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---