Skip to content
Permalink
Browse files

Rework method names.

I don't see a real use for incrementally building the hidden field list.
The code is much simpler without it, so I'll leave it off until there is
an actual use case for it.
  • Loading branch information...
markstory committed Nov 26, 2013
1 parent 68913a9 commit 54efd12ad5fab1324fafd87b00cc8a485a0727f5
Showing with 8 additions and 8 deletions.
  1. +8 −8 Cake/ORM/Entity.php
@@ -302,20 +302,20 @@ public function unsetProperty($property) {
*
* @param array $properties The properties to hide.
* @param boolean $reset The reset flag.
* @return void
* @return Entity $this
*/
public function makeHidden($properties, $reset = false) {
public function hideProperties($properties) {
$this->_hidden = $properties;
return $this;
}
/**
* Remove properties from the hidden list.
*
* The counterpart to this method is makeHidden().
* Get the list of hidden properties on this entity.
*
* @param array $properties The properties to hide.
* @return void
* @return array
*/
public function makeVisible($properties) {
public function hiddenProperties() {
return $this->_hidden;
}
/**

0 comments on commit 54efd12

Please sign in to comment.
You can’t perform that action at this time.