Exemple #1
0
 function accepts($mode)
 {
     if ($mode == substr(get_class($this), 7)) {
         return true;
     }
     return parent::accepts($mode);
 }
 public function accepts($mode)
 {
     if ($this->getConf('use_cstyle_nest') && $mode == $this->pluginMode) {
         return true;
     }
     return parent::accepts($mode);
 }
 /**
  * Specify modes allowed in the imgcaption/tabcaption
  * Using getAllowedTypes() includes too much modes.
  *
  * @param string $mode Parser mode
  * @return bool true if $mode is accepted
  */
 public function accepts($mode)
 {
     $allowedsinglemodes = array('media', 'internallink', 'externallink', 'linebreak', 'emaillink', 'windowssharelink', 'filelink', 'plugin_graphviz', 'plugin_ditaa');
     if (in_array($mode, $allowedsinglemodes)) {
         return true;
     }
     return parent::accepts($mode);
 }