ProjectRegion.class.php
567 Bytes
<?php
namespace SH\Entities;
class ProjectRegion extends \Cpeople\Classes\Block\Object
{
use \Sh\Traits\FunctionName;
use \Cpeople\Traits\MapConnection;
function getText()
{
return $this->PREVIEW_TEXT;
}
function getZoom()
{
$val = $this->hasProp('MAP_ZOOM') ? (int) $this->getPropValue('MAP_ZOOM') : false;
return $val ? $val : 9;
}
function getZoomMax()
{
$val = $this->hasProp('MAP_ZOOM_MAX') ? (int) $this->getPropValue('MAP_ZOOM_MAX') : false;
return $val ? $val : 13;
}
}