[#0 D:\1x1\labs\cake\cake\libs\model\model.php:1788 Model->find()]
name |
User |
checkExists |
TRUE |
useDbConfig |
default |
useTable |
users |
displayField |
id |
id |
[empty string] |
data |
|
table |
users |
primaryKey |
id |
_schema |
id |
type |
integer |
null |
FALSE |
default |
[empty string] |
length |
11 |
key |
primary |
|
status_id |
type |
integer |
null |
TRUE |
default |
[empty string] |
length |
[empty string] |
|
|
validate |
|
validationErrors |
|
tablePrefix |
[empty string] |
alias |
User |
tableToModel |
|
logTransactions |
[empty string] |
transactional |
[empty string] |
cacheQueries |
[empty string] |
belongsTo |
|
hasOne |
|
hasMany |
|
hasAndBelongsToMany |
|
actsAs |
[empty string] |
Behaviors |
modelName |
User |
_attached |
|
_disabled |
|
__methods |
|
__mappedMethods |
|
_log |
[empty string] |
|
whitelist |
|
cacheSources |
TRUE |
findQueryType |
[empty string] |
recursive |
1 |
order |
[empty string] |
__exists |
[empty string] |
__associationKeys |
belongsTo |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
counterCache |
|
hasOne |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
dependent |
|
hasMany |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
limit |
6 |
offset |
7 |
dependent |
8 |
exclusive |
9 |
finderQuery |
10 |
counterQuery |
|
hasAndBelongsToMany |
0 |
className |
1 |
joinTable |
2 |
with |
3 |
foreignKey |
4 |
associationForeignKey |
5 |
conditions |
6 |
fields |
7 |
order |
8 |
limit |
9 |
offset |
10 |
unique |
11 |
finderQuery |
12 |
deleteQuery |
13 |
insertQuery |
|
|
__associations |
0 |
belongsTo |
1 |
hasOne |
2 |
hasMany |
3 |
hasAndBelongsToMany |
|
__backAssociation |
|
__insertID |
[empty string] |
__numRows |
[empty string] |
__affectedRows |
[empty string] |
__findMethods |
all |
TRUE |
first |
TRUE |
count |
TRUE |
neighbors |
TRUE |
list |
TRUE |
|
_log |
[empty string] |
1779: $query = ife(is_array($return), $return, $query);
1780:
1781: if ($return === false) {
1782: return null;
1783: }
1784:
1785: $results = $db->read($this, $query);
1786: $this->resetAssociations();
1787: $this->findQueryType = null;
1788: dpbs(true, false);
1789: if ($type === 'all') {
1790: return $this->__filterResults($results);
1791: } else {
1792: if ($this->__findMethods[$type] === true) {
1793: return $this->{'_find' . ucfirst($type)}('after', $query, $results);
1794: }
1795: }
1796: }
1797: /**
1798: * Handles the before/after filter logic for find('first') operations. Only called by Model::find().
1799: *
[#1 D:\1x1\labs\cake\app\controllers\user_controller.php:45 UserController->hoge()]
helpers |
|
name |
User |
here |
/user/hoge |
webroot |
/ |
action |
hoge |
uses |
[empty string] |
params |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
data |
[empty string] |
paginate |
|
viewPath |
user |
layoutPath |
[empty string] |
viewVars |
|
pageTitle |
[empty string] |
modelNames |
|
base |
[empty string] |
layout |
default |
autoRender |
TRUE |
autoLayout |
TRUE |
Component |
__controllerVars |
plugin |
[empty string] |
name |
User |
base |
[empty string] |
|
__loaded |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
|
__settings |
|
_log |
[empty string] |
|
components |
|
view |
View |
ext |
.ctp |
output |
[empty string] |
plugin |
[empty string] |
cacheAction |
[empty string] |
persistModel |
[empty string] |
passedArgs |
|
_log |
[empty string] |
modelClass |
User |
modelKey |
user |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
User |
name |
User |
checkExists |
TRUE |
useDbConfig |
default |
useTable |
users |
displayField |
id |
id |
[empty string] |
data |
|
table |
users |
primaryKey |
id |
_schema |
id |
type |
integer |
null |
FALSE |
default |
[empty string] |
length |
11 |
key |
primary |
|
status_id |
type |
integer |
null |
TRUE |
default |
[empty string] |
length |
[empty string] |
|
|
validate |
|
validationErrors |
|
tablePrefix |
[empty string] |
alias |
User |
tableToModel |
|
logTransactions |
[empty string] |
transactional |
[empty string] |
cacheQueries |
[empty string] |
belongsTo |
|
hasOne |
|
hasMany |
|
hasAndBelongsToMany |
|
actsAs |
[empty string] |
Behaviors |
modelName |
User |
_attached |
|
_disabled |
|
__methods |
|
__mappedMethods |
|
_log |
[empty string] |
|
whitelist |
|
cacheSources |
TRUE |
findQueryType |
[empty string] |
recursive |
1 |
order |
[empty string] |
__exists |
[empty string] |
__associationKeys |
belongsTo |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
counterCache |
|
hasOne |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
dependent |
|
hasMany |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
limit |
6 |
offset |
7 |
dependent |
8 |
exclusive |
9 |
finderQuery |
10 |
counterQuery |
|
hasAndBelongsToMany |
0 |
className |
1 |
joinTable |
2 |
with |
3 |
foreignKey |
4 |
associationForeignKey |
5 |
conditions |
6 |
fields |
7 |
order |
8 |
limit |
9 |
offset |
10 |
unique |
11 |
finderQuery |
12 |
deleteQuery |
13 |
insertQuery |
|
|
__associations |
0 |
belongsTo |
1 |
hasOne |
2 |
hasMany |
3 |
hasAndBelongsToMany |
|
__backAssociation |
|
__insertID |
[empty string] |
__numRows |
[empty string] |
__affectedRows |
[empty string] |
__findMethods |
all |
TRUE |
first |
TRUE |
count |
TRUE |
neighbors |
TRUE |
list |
TRUE |
|
_log |
[empty string] |
|
0036: // $dataを保持しておく
0037:
0038: $this->paginate['limit'] = 2;
0039: $this->set('list', $this->paginate());
0040:
0041: $this->set('url', $this->_dataToNamed($data, $keys));
0042: }
0043:
0044: public function hoge($id = null) {
0045: $this->User->find('all', array('conditions' => array('name LIKE' => '%' . $id)));
0046: }
0047:
0048: protected function _namedToData($params, $keys) {
0049: $data = array();
0050: foreach ($keys as $key) {
0051: if (empty($params[$key])) {
0052: $value = null;
0053: } else {
0054: $value = $params[$key];
0055: }
0056: $data = Set::insert($data, $key, $value);
[#2 D:\1x1\labs\cake\cake\libs\object.php:114 Object->dispatchMethod()]
helpers |
|
name |
User |
here |
/user/hoge |
webroot |
/ |
action |
hoge |
uses |
[empty string] |
params |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
data |
[empty string] |
paginate |
|
viewPath |
user |
layoutPath |
[empty string] |
viewVars |
|
pageTitle |
[empty string] |
modelNames |
|
base |
[empty string] |
layout |
default |
autoRender |
TRUE |
autoLayout |
TRUE |
Component |
__controllerVars |
plugin |
[empty string] |
name |
User |
base |
[empty string] |
|
__loaded |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
|
__settings |
|
_log |
[empty string] |
|
components |
|
view |
View |
ext |
.ctp |
output |
[empty string] |
plugin |
[empty string] |
cacheAction |
[empty string] |
persistModel |
[empty string] |
passedArgs |
|
_log |
[empty string] |
modelClass |
User |
modelKey |
user |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
User |
name |
User |
checkExists |
TRUE |
useDbConfig |
default |
useTable |
users |
displayField |
id |
id |
[empty string] |
data |
|
table |
users |
primaryKey |
id |
_schema |
id |
type |
integer |
null |
FALSE |
default |
[empty string] |
length |
11 |
key |
primary |
|
status_id |
type |
integer |
null |
TRUE |
default |
[empty string] |
length |
[empty string] |
|
|
validate |
|
validationErrors |
|
tablePrefix |
[empty string] |
alias |
User |
tableToModel |
|
logTransactions |
[empty string] |
transactional |
[empty string] |
cacheQueries |
[empty string] |
belongsTo |
|
hasOne |
|
hasMany |
|
hasAndBelongsToMany |
|
actsAs |
[empty string] |
Behaviors |
modelName |
User |
_attached |
|
_disabled |
|
__methods |
|
__mappedMethods |
|
_log |
[empty string] |
|
whitelist |
|
cacheSources |
TRUE |
findQueryType |
[empty string] |
recursive |
1 |
order |
[empty string] |
__exists |
[empty string] |
__associationKeys |
belongsTo |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
counterCache |
|
hasOne |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
dependent |
|
hasMany |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
limit |
6 |
offset |
7 |
dependent |
8 |
exclusive |
9 |
finderQuery |
10 |
counterQuery |
|
hasAndBelongsToMany |
0 |
className |
1 |
joinTable |
2 |
with |
3 |
foreignKey |
4 |
associationForeignKey |
5 |
conditions |
6 |
fields |
7 |
order |
8 |
limit |
9 |
offset |
10 |
unique |
11 |
finderQuery |
12 |
deleteQuery |
13 |
insertQuery |
|
|
__associations |
0 |
belongsTo |
1 |
hasOne |
2 |
hasMany |
3 |
hasAndBelongsToMany |
|
__backAssociation |
|
__insertID |
[empty string] |
__numRows |
[empty string] |
__affectedRows |
[empty string] |
__findMethods |
all |
TRUE |
first |
TRUE |
count |
TRUE |
neighbors |
TRUE |
list |
TRUE |
|
_log |
[empty string] |
|
0105: *
0106: * @param string $method Name of the method to call
0107: * @param array $params Parameter list to use when calling $method
0108: * @return mixed Returns the result of the method call
0109: * @access public
0110: */
0111: function dispatchMethod($method, $params = array()) {
0112: switch (count($params)) {
0113: case 0:
0114: return $this->{$method}();
0115: case 1:
0116: return $this->{$method}($params[0]);
0117: case 2:
0118: return $this->{$method}($params[0], $params[1]);
0119: case 3:
0120: return $this->{$method}($params[0], $params[1], $params[2]);
0121: case 4:
0122: return $this->{$method}($params[0], $params[1], $params[2], $params[3]);
0123: case 5:
0124: return $this->{$method}($params[0], $params[1], $params[2], $params[3], $params[4]);
0125: default:
[#3 D:\1x1\labs\cake\cake\dispatcher.php:261 Dispatcher->_invoke()]
base |
[empty string] |
webroot |
/ |
here |
/user/hoge |
admin |
[empty string] |
plugin |
[empty string] |
params |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
_log |
[empty string] |
0252: array(
0253: 'className' => Inflector::camelize($params['controller']."Controller"),
0254: 'action' => $params['action'],
0255: 'webroot' => $this->webroot,
0256: 'url' => $this->here,
0257: 'base' => $this->base
0258: )
0259: ));
0260: } else {
0261: $output = $controller->dispatchMethod($params['action'], $params['pass']);
0262: }
0263:
0264: if ($controller->autoRender) {
0265: $controller->output = $controller->render();
0266: } elseif (empty($controller->output)) {
0267: $controller->output = $output;
0268: }
0269:
0270: $controller->Component->shutdown($controller);
0271:
0272: $controller->afterFilter();
[#4 D:\1x1\labs\cake\cake\dispatcher.php:233 Dispatcher->dispatch()]
base |
[empty string] |
webroot |
/ |
here |
/user/hoge |
admin |
[empty string] |
plugin |
[empty string] |
params |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
_log |
[empty string] |
0224: 'className' => Inflector::camelize($this->params['controller']."Controller"),
0225: 'action' => $this->params['action'],
0226: 'webroot' => $this->webroot,
0227: 'url' => $url,
0228: 'base' => $this->base
0229: )
0230: ));
0231: }
0232:
0233: return $this->_invoke($controller, $this->params, $missingAction);
0 |
helpers |
|
name |
User |
here |
/user/hoge |
webroot |
/ |
action |
hoge |
uses |
[empty string] |
params |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
data |
[empty string] |
paginate |
|
viewPath |
user |
layoutPath |
[empty string] |
viewVars |
|
pageTitle |
[empty string] |
modelNames |
|
base |
[empty string] |
layout |
default |
autoRender |
TRUE |
autoLayout |
TRUE |
Component |
__controllerVars |
plugin |
[empty string] |
name |
User |
base |
[empty string] |
|
__loaded |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
|
__settings |
|
_log |
[empty string] |
|
components |
|
view |
View |
ext |
.ctp |
output |
[empty string] |
plugin |
[empty string] |
cacheAction |
[empty string] |
persistModel |
[empty string] |
passedArgs |
|
_log |
[empty string] |
modelClass |
User |
modelKey |
user |
Session |
__active |
TRUE |
__started |
TRUE |
__bare |
0 |
valid |
[empty string] |
error |
1 |
Session Highjacking Attempted !!! |
|
_userAgent |
daee00cf741af4d4d1ecbd0650c28b37 |
path |
/ |
lastError |
1 |
security |
high |
time |
1213619834 |
sessionTime |
1213621034 |
watchKeys |
|
id |
[empty string] |
_log |
[empty string] |
host |
app.cake.1x1.jp |
enabled |
TRUE |
cookieLifeTime |
0 |
|
User |
name |
User |
checkExists |
TRUE |
useDbConfig |
default |
useTable |
users |
displayField |
id |
id |
[empty string] |
data |
|
table |
users |
primaryKey |
id |
_schema |
id |
type |
integer |
null |
FALSE |
default |
[empty string] |
length |
11 |
key |
primary |
|
status_id |
type |
integer |
null |
TRUE |
default |
[empty string] |
length |
[empty string] |
|
|
validate |
|
validationErrors |
|
tablePrefix |
[empty string] |
alias |
User |
tableToModel |
|
logTransactions |
[empty string] |
transactional |
[empty string] |
cacheQueries |
[empty string] |
belongsTo |
|
hasOne |
|
hasMany |
|
hasAndBelongsToMany |
|
actsAs |
[empty string] |
Behaviors |
modelName |
User |
_attached |
|
_disabled |
|
__methods |
|
__mappedMethods |
|
_log |
[empty string] |
|
whitelist |
|
cacheSources |
TRUE |
findQueryType |
[empty string] |
recursive |
1 |
order |
[empty string] |
__exists |
[empty string] |
__associationKeys |
belongsTo |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
counterCache |
|
hasOne |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
dependent |
|
hasMany |
0 |
className |
1 |
foreignKey |
2 |
conditions |
3 |
fields |
4 |
order |
5 |
limit |
6 |
offset |
7 |
dependent |
8 |
exclusive |
9 |
finderQuery |
10 |
counterQuery |
|
hasAndBelongsToMany |
0 |
className |
1 |
joinTable |
2 |
with |
3 |
foreignKey |
4 |
associationForeignKey |
5 |
conditions |
6 |
fields |
7 |
order |
8 |
limit |
9 |
offset |
10 |
unique |
11 |
finderQuery |
12 |
deleteQuery |
13 |
insertQuery |
|
|
__associations |
0 |
belongsTo |
1 |
hasOne |
2 |
hasMany |
3 |
hasAndBelongsToMany |
|
__backAssociation |
|
__insertID |
[empty string] |
__numRows |
[empty string] |
__affectedRows |
[empty string] |
__findMethods |
all |
TRUE |
first |
TRUE |
count |
TRUE |
neighbors |
TRUE |
list |
TRUE |
|
_log |
[empty string] |
|
|
1 |
pass |
|
named |
|
controller |
user |
action |
hoge |
plugin |
[empty string] |
form |
|
url |
|
|
2 |
FALSE |
0234: }
0235: /**
0236: * Invokes given controller's render action if autoRender option is set. Otherwise the
0237: * contents of the operation are returned as a string.
0238: *
0239: * @param object $controller Controller to invoke
0240: * @param array $params Parameters with at least the 'action' to invoke
0241: * @param boolean $missingAction Set to true if missing action should be rendered, false otherwise
0242: * @return string Output as sent by controller
0243: * @access protected
0244: */
[#5 D:\1x1\labs\cake\app\webroot\index.php:86 ]0077: }
0078: }
0079: if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
0080: trigger_error("Can't find CakePHP core. Check the value of CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
0081: }
0082: if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
0083: return;
0084: } else {
0085: $Dispatcher = new Dispatcher();
0086: $Dispatcher->dispatch($url);
0087: }
0088: if (Configure::read() > 0) {
0089: echo "";
0090: }
0091: ?>