public function getShortName($chars = 8) { if (strlen($this->name) <= $chars) { return $this->name; } $splitName = explode(' ', $this->name); if (strlen($splitName[0]) <= $chars) { return $splitName[0]; } return ''; }