コード例 #1
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         throw new Exception("must specify a serviceUrl");
     }
 }
コード例 #2
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         throw new Exception(_m('A serviceUrl must be specified.'));
     }
 }
コード例 #3
0
 /**
  * Add bit.ly to the list of available URL shorteners if it's configured,
  * otherwise leave it out.
  *
  * @param array $shorteners
  * @return boolean hook return value
  */
 function onGetUrlShorteners(&$shorteners)
 {
     if ($this->getLogin() && $this->getApiKey()) {
         return parent::onGetUrlShorteners($shorteners);
     }
     return true;
 }
コード例 #4
0
ファイル: PtitUrlPlugin.php プロジェクト: Grasia/bolotweet
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         // TRANS: Exception thrown when URL shortening plugin was configured incorrectly.
         throw new Exception(_m('You must specify a serviceUrl for ptit URL shortening.'));
     }
 }
コード例 #5
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         // TRANS: Exception thrown when the TightUrl plugin has been configured incorrectly.
         throw new Exception(_m('You must specify a serviceUrl.'));
     }
 }