28 lines
592 B
PHP
28 lines
592 B
PHP
<?php
|
|
|
|
|
|
namespace app\models;
|
|
|
|
/**
|
|
* Class Contacts
|
|
* @package app\models
|
|
* @property $phone
|
|
* @property $email
|
|
* @property $website
|
|
* @property $address
|
|
* @property $address_en
|
|
* @property $managing_authority
|
|
* @property $managing_authority_en
|
|
* @property $page_id
|
|
*/
|
|
class Contacts extends _Base
|
|
{
|
|
public function getAddress() {
|
|
return \Yii::$app->language == 'en' ? $this->address_en : $this->address;
|
|
}
|
|
|
|
public function getManagingAuthority() {
|
|
return \Yii::$app->language == 'en' ? $this->managing_authority_en : $this->managing_authority;
|
|
}
|
|
}
|