first commit
This commit is contained in:
32
plugins/appAdsTrackerPlugin/lib/model/AdsTrackerPlatform.php
Normal file
32
plugins/appAdsTrackerPlugin/lib/model/AdsTrackerPlatform.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Subclass for representing a row from the 'app_ads_tracker_platform' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package plugins.appAdsTrackerPlugin.lib.model
|
||||
*/
|
||||
class AdsTrackerPlatform extends BaseAdsTrackerPlatform
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return $this->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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user