## Method Housekeeping ## Extra Method List ### Model #### Aliases for del() * remove() * delete() The remove() and del() methods have been removed in the 1.3-misc branch; delete() is now canonical. #### Duplicate getxxxID * getInsertID * getLastInsertID These methods are aliases for each other. * getID At first glance looks like an alias for `$this->id` However, getID() is referenced in `exists()` and handles the case where `$this->id` is an array? More testing would be needed to see what the implications of removal would be. It used to be possible for `$this->id` to be an array. I don't think this has been supported since before 1.1. We can probably safely remove it. #### Extra find methods. * findAll * findCount * findNeighbours * findAllThreaded These are no longer needed due to changes in find() * bind * bindModel These methods are confusingly similar. When / how should one be used over the other. Their doc blocks are strikingly similar as well. One should be removed. * setInsertID This only seems to be used by the dbos. However, whenever setInsertID() is used so is `$this->id`. Two variables for the same thing is confusing. For some reason, removing this and setting `->id` manually in the db layer breaks things (tests). Not sure why. ### TreeBehavior <strike>Numerous non camelCased methods</strike> -- lowercased method names in behaviors are required for PHP4 compatibility. They can still be called (and should be documented) in proper mixed case. ### Folder #### nix flavored aliases * move / mv * delete / rm * copy / cp * read / ls * create / mkdir #### correctSlashFor / normalizePath There already have been some changes related to future deprecation of one method in favor of the other. Before [Changeset 6924](https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/folder.php?rev=6923) both methods were equal. In [Changeset 6924](https://trac.cakephp.org/changeset/6924) correctSlashFor was changed to a wrapper for normalizePath. In [Changeset 7939](https://trac.cakephp.org/changeset/7939) normalizePath was changed to a wrapper for correctSlashFor. normalizePath is currently not used in the core (except in the Folder class tests). #### inPath / inCakePath inCakePath provides a short-hand for `->inPath(ROOT . $path)` inCakePath is currently not used in the core (except in the Folder class tests) whereas inPath is used once inside inCakePath and once inside the FileEngine class. More aliases