You are here

private function Bundle::createLabel in Entity Construction Kit (ECK) 7.2

Same name and namespace in other branches
  1. 7.3 eck.classes.inc \Bundle::createLabel()

Create a label.

1 call to Bundle::createLabel()
Bundle::save in ./eck.classes.inc
Save the entity type.

File

./eck.classes.inc, line 560
Classes for all the different objects used in ECK.

Class

Bundle
A bundle database object.

Code

private function createLabel() {
  $name = $this->name;
  $pieces = explode("_", $name);
  $final = array();
  foreach ($pieces as $piece) {
    $final[] = ucfirst($piece);
  }
  $this->label = implode(" ", $final);
}