コード例 #1
0
ファイル: Rectangle.php プロジェクト: beastbytes/yii2-leaflet
 /**
  * Initialises the object
  *
  * @throws \yii\base\InvalidConfigException If the `bounds` attribute is not set
  */
 public function init()
 {
     if (empty($this->getBounds())) {
         throw new InvalidConfigException('The `bounds` attribute must be set.');
     }
     parent::init();
 }
コード例 #2
0
ファイル: TileLayer.php プロジェクト: beastbytes/yii2-leaflet
 /**
  * Initialises the object
  *
  * @throws \yii\base\InvalidConfigException If the `url` attribute is not set
  */
 public function init()
 {
     parent::init();
     if (empty($this->_url)) {
         throw new InvalidConfigException('The `url` attribute must be set.');
     }
 }
コード例 #3
0
ファイル: Popup.php プロジェクト: beastbytes/yii2-leaflet
 /**
  * Initialises the object
  *
  * @throws \yii\base\InvalidConfigException If the `position` attribute is not set
  */
 public function init()
 {
     parent::init();
     if (empty($this->getLatLng())) {
         throw new InvalidConfigException('The `latLng` attribute must be set.');
     }
 }
コード例 #4
0
 /**
  * Initialises the object
  *
  * @throws \yii\base\InvalidConfigException If the `position` attribute is not set
  */
 public function init()
 {
     parent::init();
     if (empty($this->getBounds()) || empty($this->_url)) {
         throw new InvalidConfigException('The `bounds` and `url` attributes must be set.');
     }
 }