Exemplo n.º 1
0
 public function getMixableMethods(Library\ObjectMixable $mixer = null)
 {
     $methods = parent::getMixableMethods($mixer);
     if (!is_null($mixer)) {
         // If table is not enabled, don't mix the methods.
         $table = $mixer instanceof Library\DatabaseTableInterface ? $mixer : $mixer->getTable();
         $needle = array('name' => $table->getBase(), 'extension_name' => 'com_' . $table->getIdentifier()->package);
         if (!count($this->_tables->find($needle))) {
             $methods['isTranslatable'] = function () {
                 return false;
             };
             unset($methods['getLanguages']);
             unset($methods['getTranslations']);
         }
     }
     return $methods;
 }
Exemplo n.º 2
0
 public function getMixableMethods(Library\ObjectMixable $mixer = null)
 {
     $methods = array_merge(parent::getMixableMethods($mixer), $this->getStrategy()->getMixableMethods($mixer));
     unset($methods['getStrategy']);
     return $methods;
 }
Exemplo n.º 3
0
 public function getMixableMethods(Library\ObjectMixable $mixer = null)
 {
     $methods = parent::getMixableMethods($mixer);
     unset($methods['is' . ucfirst($this->getIdentifier()->name)]);
     return $methods;
 }