Models/Abilities/BaseModelAbility.php
protected function publishMethod($methodName, $isStatic = false) {
        if ($isStatic) {
            $this->_publishedStaticMethods[$methodName] = array();
        } else {
            $this->_publishedMethods[$methodName] = array();
        }
    }
protected function publishMethod($methodName, $isStatic = false) {
        if ($isStatic) {
            $this->_publishedStaticMethods[$methodName] = array();
        } else {
            $this->_publishedMethods[$methodName] = array();
        }
    }
Use for dynamic publishing actions
@param string $methodName
@param bool $isStatic