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; }
public function getMixableMethods(Library\ObjectMixable $mixer = null) { $methods = array_merge(parent::getMixableMethods($mixer), $this->getStrategy()->getMixableMethods($mixer)); unset($methods['getStrategy']); return $methods; }
public function getMixableMethods(Library\ObjectMixable $mixer = null) { $methods = parent::getMixableMethods($mixer); unset($methods['is' . ucfirst($this->getIdentifier()->name)]); return $methods; }