Initial import
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user