Re: [CakePHP : The Rapid Development Framework for PHP] #6525: Deprecate ife(), a(), am(), r(), up(), low(), and e()

2009-10-20 Thread CakePHP : The Rapid Development Framework for PHP
#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: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:header());
 ?>

 }}}

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 

Re: [CakePHP : The Rapid Development Framework for PHP] #6276: afterFind() called twice / documentation does not match behaviour

2009-10-20 Thread CakePHP : The Rapid Development Framework for PHP
#6276: afterFind() called twice / documentation does not match behaviour
--+-
Reporter:  nemosoft   | Owner:   
Type:  RFC|Status:  new  
Priority:  Medium | Milestone:  1.2.x.x  
   Component:  Model  |   Version:  1.2 Final
Severity:  Normal |Resolution:   
Keywords:  afterFind primary data corruption  |   Php_version:  PHP 5
Cake_version:  8120   |  
--+-
Comment (by Pichan):

 Still nothing? I'd at least like an official opinion on this ticket.[[BR]]
 Is it supposed to do that? Is the code wrong or are the docs wrong?[[BR]]
 I have no idea what kind of problems the devs are facing elsewhere since
 this is my first time using trac here but at least from my point of view
 cake acting like this is an annoyance. A minor one but still one.[[BR]]
 At least how I see it, having to identify data only by it's structure
 should be avoided.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #3270: Allow errors to be logged in production (DEBUG 0)

2009-10-20 Thread CakePHP : The Rapid Development Framework for PHP
#3270: Allow errors to be logged in production (DEBUG 0)
--+-
Reporter:  maular | Owner:  
nate   
Type:  Enhancement|Status:  
closed 
Priority:  Low| Milestone:  
1.3.x.x
   Component:  Core Libs  |   Version:  
   
Severity:  Minor  |Resolution:  
fixed  
Keywords:  error_log log_errors debugger error_reporting  |   Php_version:  
n/a
Cake_version:  5672   |  
--+-
Comment (by Bookmarkwiz):

 where can i find the 1.3-misc branch build?


 [http://www.centralairconditioningunits.net/window-air-conditioning-
 units.html Window Air Conditioning Units]

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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
-~--~~~~--~~--~--~---