cakephp-1.3 > TreeBehavior :: moveup()
TreeBehavior
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
moveup
Reorder the node without changing the parent.
Method
(boolean)
moveup
(&$Model, $id = null, $number = 1)
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$Model | AppModel | required Model instance | |
$id | mixed | optional The ID of the record to move | null |
$number | int|bool | optional how many places to move the node, or true to move to first position | 1 |
Return
booleanComment
Reorder the node without changing the parent.
If the node is the first child, or is a top level node with no previous node this method will return false
@param AppModel $Model Model instance
@param mixed $id The ID of the record to move
@param int|bool $number how many places to move the node, or true to move to first position
@return boolean true on success, false on failure
@access public
@link http://book.cakephp.org/view/1353/moveUp
If the node is the first child, or is a top level node with no previous node this method will return false
@param AppModel $Model Model instance
@param mixed $id The ID of the record to move
@param int|bool $number how many places to move the node, or true to move to first position
@return boolean true on success, false on failure
@access public
@link http://book.cakephp.org/view/1353/moveUp