public function getLabel()
    {
        if (property_exists($this, '_label_column')) {
            if (property_exists($this, $this->_label_column)) {
                $label_column = $this->_label_column;
                return $this->$label_column;
            }
        }
        if (property_exists($this, 'name')) {
            return $this->name;
        }
        if (property_exists($this, 'description')) {
            return $this->description;
        }
        return "No label for " . get_called_class() . " ID " . $this->getId();
    }
public function getLabel()
    {
        if (property_exists($this, '_label_column')) {
            if (property_exists($this, $this->_label_column)) {
                $label_column = $this->_label_column;
                return $this->$label_column;
            }
        }
        if (property_exists($this, 'name')) {
            return $this->name;
        }
        if (property_exists($this, 'description')) {
            return $this->description;
        }
        return "No label for " . get_called_class() . " ID " . $this->getId();
    }
public function getLabel ( ) { if ( property_exists ( $ this , '_label_column' ) ) { if ( property_exists ( $ this , $ this -> _label_column ) ) { $ label_column = $ this -> _label_column ; return $ this -> $ label_column ; } } if ( property_exists ( $ this , 'name' ) ) { return $ this -> name ; } if ( property_exists ( $ this , 'description' ) ) { return $ this -> description ; } return "No label for " . get_called_class ( ) . " ID " . $ this -> getId ( ) ; }
Get a label for the object. Perhaps a Name or Description field.
@return string
Get a label for the object . Perhaps a Name or Description field .