/** * Get the methods that are available for mixin based * * This function conditionaly mixes the behavior. Only if the mixer * has a 'modified_by' or 'modified_by' property the behavior will * be mixed in. * * @param ObjectMixable $mixer The mixer requesting the mixable methods. * @return array An array of methods */ public function getMixableMethods(ObjectMixable $mixer = null) { $methods = array(); if ($mixer instanceof DatabaseRowInterface && ($mixer->has('modified_by') || $mixer->has('modified_on'))) { $methods = parent::getMixableMethods($mixer); } return $methods; }
/** * Get the methods that are available for mixin based * * This functions conditionaly mixes the behavior. Only if the mixer * has a 'ordering' property the behavior will be mixed in. * * @param ObjectMixable $mixer The mixer requesting the mixable methods. * @return array An array of methods */ public function getMixableMethods(ObjectMixable $mixer = null) { $methods = array(); if ($mixer instanceof DatabaseRowInterface && $mixer->has('ordering')) { $methods = parent::getMixableMethods($mixer); } return $methods; }
/** * Get the methods that are available for mixin based * * @param array $exclude A list of methods to exclude * @return array An array of methods */ public function getMixableMethods($exclude = array()) { $exclude = array_merge($exclude, array('getNodes')); $methods = parent::getMixableMethods($exclude); return $methods; }
/** * Get the methods that are available for mixin based * * @param array $exclude A list of methods to exclude * @return array An array of methods */ public function getMixableMethods($exclude = array()) { if ($this->_column !== 'parameters') { $exclude = array_merge($exclude, array('getParameters')); $methods = parent::getMixableMethods($exclude); //Add dynamic methods based on the column name $methods['get' . ucfirst($this->_column)] = $this; $methods['setProperty' . ucfirst($this->_column)] = $this; } else { $methods = parent::getMixableMethods(); } return $methods; }