import($car); } public function import($properties){ foreach($properties as $key => $value) { $this->{$key} = $value; } } public function getLink($text='') { if($text == '') $text = $this->username; return "id}'>$text"; } public function card($text='') { return $this->name.$this->img; } public function imgTag() { return "{$this->name}"; } public function imgTagFull() { return "{$this->name}"; } public function clickableName() { return $this->linkTag($this->name); } public function clickableImgTag() { return $this->linkTag($this->imgTag()); } public function linkTag($content) { return "$content"; } public function linkTitleImgTag() { $content = $this->name . '
' . $this->imgTag(); return "$content"; } }