getAdsName(); } public function save($con = null) { if ($this->isNew() && null === $this->getColor()) { $this->setColor(appAdsTracker::random_color()); } parent::save(); } public function getAdminGeneratorTitle() { return $this->getAdsName(); } }