Office.class.php
803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace SH\Entities;
class Office extends \Cpeople\Classes\Block\Object
{
use \Sh\Traits\FunctionName;
use \Cpeople\Traits\MapConnection;
function getText()
{
$result = $this->{'~PREVIEW_TEXT'};
if($result) $result = '<p>' . implode('</p><p>', array_filter(explode("\n", $this->{'~PREVIEW_TEXT'}))) . '</p>';
return $result;
}
function getPhones()
{
return $this->getPropValue('PHONE');
}
function getTime()
{
return $this->getPropValue('TIME');
}
function getAddress()
{
return $this->getPropValue('ADDRESS');
}
function getSubtitle()
{
return $this->getPropValue('SUBTITLE');
}
function getEmail()
{
return $this->getPropValue('EMAIL');
}
}