FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
users/Model/UsersAppModel.php at master · chmac/users · GitHub
chmac
/
users
Public
forked from
CakeDC/users
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
users
/
Model
/
UsersAppModel.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
55 lines (50 loc) · 1.21 KB
Breadcrumbs
users
/
Model
/
UsersAppModel.php
Copy path
File metadata and controls
55 lines (50 loc) · 1.21 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Copyright 2010 - 2011, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2011, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::
uses
(
'
Model
'
,
'
Model
'
);
/**
* Users App Model
*
* @package users
* @subpackage users.models
*/
class
UsersAppModel
extends
AppModel {
/**
* Plugin name
*
* @var string $plugin
*/
public
$
plugin
=
'
Users
'
;
/**
* Behaviors
*
* @var array
*/
public
$
actsAs
=
array
(
'
Containable
'
);
/**
* Customized paginateCount method
*
* @param array
* @param integer
* @param array
* @return
*/
function
paginateCount
(
$
conditions
=
array
(),
$
recursive
=
0
,
$
extra
=
array
()) {
$
parameters
=
compact
(
'
conditions
'
);
if
(
$
recursive
!=
$
this
->
recursive
) {
$
parameters
[
'
recursive
'
] =
$
recursive
;
}
if
(
isset
(
$
extra
[
'
type
'
]) &&
isset
(
$
this
->
findMethods
[
$
extra
[
'
type
'
]])) {
$
extra
[
'
operation
'
] =
'
count
'
;
return
$
this
->
find
(
$
extra
[
'
type
'
],
array_merge
(
$
parameters
,
$
extra
));
}
return
$
this
->
find
(
'
count
'
,
array_merge
(
$
parameters
,
$
extra
));
}
}
Back
|
FazBrowse Home
|
New Git URL