Skip to content

Commit

Permalink
Rework method names.
Browse files Browse the repository at this point in the history
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 54efd12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Cake/ORM/Entity.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 54efd12

Please sign in to comment.