public function getTest() { $this->onExecuteBefore('getTest'); if (!empty($this->_sid) && $this->_sid > 0) { $function = array('campaigns', $this->_sid, 'bids'); $params = array('target' => 'search'); $test = KSSystem::getYaMarketData2($function); $this->onExecuteAfter('getTest', array(&$test)); return $test; } return new stdClass(); }