/** * (non-PHPdoc) * * @see OmiseApiResource::g_reload() */ public function reload() { if ($this['object'] === 'customer') { parent::g_reload(self::getUrl($this['id'])); } else { parent::g_reload(self::getUrl()); } }
/** * (non-PHPdoc) * * @see OmiseApiResource::g_reload() */ public function reload() { if ($this['object'] === 'transaction') { parent::reload(self::getUrl($this['id'])); } else { parent::g_reload(self::getUrl()); } }
/** * @param array $cards * @param string $customerID * @param string $publickey * @param string $secretkey */ public function __construct($cards, $customerID, $options = array(), $publickey = null, $secretkey = null) { if (!is_array($options) && func_num_args() == 4) { $publickey = func_get_arg(2); $secretkey = func_get_arg(3); } parent::__construct($publickey, $secretkey); $this->_customerID = $customerID; if (is_array($options)) { parent::g_reload($this->getUrl('?' . http_build_query($options))); } else { $this->refresh($cards); } }
/** * (non-PHPdoc) * @see OmiseApiResource::g_reload() */ public function reload() { parent::g_reload(self::getUrl()); }
/** * (non-PHPdoc) * * @see OmiseApiResource::g_reload() */ public function reload() { parent::g_reload($this->getUrl($this['id'])); }