AAAAPKu>\F˩ArtxContent.phpnuW+A_component = $component; $this->_componentParams = $params; $this->pageClassSfx = $component->pageclass_sfx; $this->pageHeading = $this->_componentParams->get('show_page_heading', 1) ? $this->_componentParams->get('page_heading') : ''; } public function pageHeading($title = null) { return artxPost(array('header-text' => $this->_component->escape(null == $title ? $this->pageHeading : $title))); } public function article($view, $article, $params, $properties = array()) { switch ($view) { case 'archive': return new ArtxContentArchivedArticle($this->_component, $this->_componentParams, $article, $params); case 'article': return new ArtxContentSingleArticle($this->_component, $this->_componentParams, $article, $params, $properties); case 'category': return new ArtxContentCategoryArticle($this->_component, $this->_componentParams, $article, $params); case 'featured': return new ArtxContentFeaturedArticle($this->_component, $this->_componentParams, $article, $params); } } public function beginPageContainer($class) { return '
'; } public function endPageContainer() { return '
'; } } PKu>\QK` ` ArtxContentListItem.phpnuW+AisPublished = 0 != $this->_article->state; $this->titleLink = $this->_articleParams->get('link_titles') && $this->_articleParams->get('access-view') ? JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid)) : ''; $this->intro = $this->_article->introtext; if ($this->_articleParams->get('show_readmore') && $this->_article->readmore) { if (!$this->_articleParams->get('access-view')) $this->readmore = JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); elseif ($this->readmore = $this->_article->alternative_readmore) { if ($this->_articleParams->get('show_readmore_title', 0) != 0) $this->readmore .= JHtml::_('string.truncate', ($this->_article->title), $this->_articleParams->get('readmore_limit')); } elseif ($this->_articleParams->get('show_readmore_title', 0) == 0) $this->readmore = JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); else $this->readmore = JText::_('COM_CONTENT_READ_MORE') . JHtml::_('string.truncate', $this->_article->title, $this->_articleParams->get('readmore_limit')); if ($this->_articleParams->get('access-view')) { $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid)); $this->readmoreLink = $link; } else { $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); $itemId = $active->id; $link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catid)); $link = new JURI($link1); $link->setVar('return', base64_encode($returnURL)); $this->readmoreLink = $link->__toString(); } } else { $this->readmore = ''; $this->readmoreLink = ''; } } public function intro($intro) { return "
" . $intro . "
"; } } PKu>\= llArtxContentArticleBase.phpnuW+A_component = $component; $this->_componentParams = $componentParams; $this->_article = $article; $this->_articleParams = $articleParams; // Calculate properties: $this->title = $this->_article->title; $this->created = $this->_articleParams->get('show_create_date') ? $this->_article->created : ''; $this->modified = $this->_articleParams->get('show_modify_date') ? $this->_article->modified : ''; $this->published = $this->_articleParams->get('show_publish_date') ? $this->_article->publish_up : ''; $this->hits = $this->_articleParams->get('show_hits') ? $this->_article->hits : ''; $this->author = $this->_articleParams->get('show_author') && !empty($this->_article->author) ? ($this->_article->created_by_alias ? $this->_article->created_by_alias : $this->_article->author) : ''; $this->authorLink = strlen($this->author) && !empty($this->_article->contactid) && $this->_articleParams->get('link_author') ? 'index.php?option=com_contact&view=contact&id=' . $this->_article->contactid : ''; } /** * @see $created */ public function createdDateInfo($created) { return JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $created, JText::_('DATE_FORMAT_LC2'))); } /** * @see $modified */ public function modifiedDateInfo($modified) { return JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $modified, JText::_('DATE_FORMAT_LC2'))); } /** * @see $published */ public function publishedDateInfo($published) { return JText::sprintf('COM_CONTENT_PUBLISHED_DATE', JHtml::_('date', $published, JText::_('DATE_FORMAT_LC2'))); } /** * @see $author */ public function authorInfo($author, $authorLink) { if (strlen($authorLink)) return JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($authorLink), $author)); return JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); } public function articleSeparator() { return '
 
'; } /** * @see $section, $sectionLink, $category, $categoryLink */ public function categories($parentCategory, $parentCategoryLink, $category, $categoryLink) { if (0 == strlen($parentCategory) && 0 == strlen($category)) return ''; ob_start(); if (strlen($parentCategory)) { echo ''; if (strlen($parentCategoryLink)) echo '' . $this->_component->escape($parentCategory) . ''; else echo $this->_component->escape($parentCategory); echo ''; if (strlen($category)) echo ' / '; } if (strlen($category)) { echo ''; if (strlen($categoryLink)) echo '' . $this->_component->escape($category) . ''; else echo $this->_component->escape($category); echo ''; } return JText::sprintf('COM_CONTENT_CATEGORY', ob_get_clean()); } public function hitsInfo($hits) { return JText::sprintf('COM_CONTENT_ARTICLE_HITS', $hits); } public function event($name) { return $this->_article->event->{$name}; } public function getArticleViewParameters() { return array('metadata-header-icons' => array(), 'metadata-footer-icons' => array()); } public function article($article) { return artxPost($article); } } PKu>\) .htaccessnuW+A Order allow,deny Deny from all PKu>\GʿooArtxContentItem.phpnuW+Atitle = $this->_articleParams->get('show_title') ? $this->_article->title : ''; $this->printIconVisible = $this->_articleParams->get('show_print_icon'); $this->emailIconVisible = $this->_articleParams->get('show_email_icon'); $this->editIconVisible = $this->_articleParams->get('access-edit'); $this->introVisible = $this->_articleParams->get('show_intro'); } /** * @see $emailIconVisible */ public function emailIcon() { return JHtml::_('icon.email', $this->_article, $this->_articleParams); } /** * @see $editIconVisible */ public function editIcon() { return JHtml::_('icon.edit', $this->_article, $this->_articleParams); } /** * @see $printIconVisible */ public function printIcon() { return JHtml::_('icon.print_popup', $this->_article, $this->_articleParams); } /** * Returns decoration for unpublished article. * * Together with endUnpublishedArticle() this function decorates * the unpublished article with
...
. * By default, this decoration is applied only for articles in list. */ public function beginUnpublishedArticle() { return '
'; } public function endUnpublishedArticle() { return '
'; } public function readmore($readmore, $readmoreLink) { return '

' . artxLinkButton(array( 'classes' => array('a' => 'readon'), 'link' => $readmoreLink, 'content' => str_replace(' ', ' ', $readmore))) . '

'; } } PKu>\R$QQArtxContentFeaturedArticle.phpnuW+Acategory = $this->_articleParams->get('show_category') ? $this->_article->category_title : ''; $this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug)) : ''; $this->parentCategory = $this->_articleParams->get('show_category') && $this->_article->parent_id != 1 ? $this->_article->parent_title : ''; $this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug)) : ''; } } PKu>\gArtxContentArchivedArticle.phpnuW+AtitleLink = $this->_articleParams->get('link_titles') ? JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catslug)) : ''; $this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : ''; $this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug)) : ''; $this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug)) : ''; $this->intro = $this->_articleParams->get('show_intro') ? $this->_article->introtext : ''; } public function intro($intro) { return '
' . JHtml::_('string.truncate', $intro, $this->_articleParams->get('introtext_limit')) . '
'; } } PKu>\:akArtxContentSingleArticle.phpnuW+Aprint = isset($properties['print']) ? $properties['print'] : ''; $this->pageHeading = $this->_componentParams->get('show_page_heading', 1) ? $this->_componentParams->get('page_heading') : ''; $this->titleLink = $this->_articleParams->get('link_titles') && !empty($this->_article->readmore_link) ? $this->_article->readmore_link : ''; $this->emailIconVisible = $this->emailIconVisible && !$this->print; $this->editIconVisible = $this->editIconVisible && !$this->print; $this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug)) : ''; $this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : ''; $this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug)) : ''; $this->parentCategory = $this->_articleParams->get('show_parent_category') && $this->_article->parent_slug != '1:root' ? $this->_article->parent_title : ''; $this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug)) : ''; $this->author = $this->_articleParams->get('show_author') && !empty($this->_article->author) ? ($this->_article->created_by_alias ? $this->_article->created_by_alias : $this->_article->author) : ''; if (strlen($this->author)) { $needle = 'index.php?option=com_contact&view=contact&id=' . $this->_article->contactid; $item = JSite::getMenu()->getItems('link', $needle, true); $this->authorLink = !empty($item) ? $needle . '&Itemid=' . $this->_article->id : $needle; } else $this->authorLink = ''; $this->toc = isset($this->_article->toc) ? $this->_article->toc : ''; $this->text = $this->_articleParams->get('access-view') ? $this->_article->text : ''; $user = JFactory::getUser(); $this->introVisible = !$this->_articleParams->get('access-view') && $params->get('show_noauth') && $user->get('guest'); $this->intro = $this->_article->introtext; if (!$this->_articleParams->get('access-view') && $this->_articleParams->get('show_noauth') && $user->get('guest') && $this->_articleParams->get('show_readmore') && $this->_article->fulltext != null) { $attribs = json_decode($this->_article->attribs); if ($attribs->alternative_readmore == null) $this->readmore = JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); elseif ($this->readmore = $this->_article->alternative_readmore) { if ($this->_articleParams->get('show_readmore_title', 0) != 0) $this->readmore .= JHtml::_('string.truncate', ($this->_article->title), $this->_articleParams->get('readmore_limit')); } elseif ($this->_articleParams->get('show_readmore_title', 0) == 0) $this->readmore = JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); else $this->readmore = JText::_('COM_CONTENT_READ_MORE') . JHtml::_('string.truncate', $this->_article->title, $this->_articleParams->get('readmore_limit')); $link = new JURI(JRoute::_('index.php?option=com_users&view=login')); $this->readmoreLink = $link->__toString(); } else { $this->readmore = ''; $this->readmoreLink = ''; } } public function toc($toc) { return '
' . $toc . '
'; } public function intro($intro) { return '
' . $intro . '
'; } public function text($text) { return '
' . $text . '
'; } } PKu>\f&|  ArtxContentCategoryArticle.phpnuW+Acategory = $this->_articleParams->get('show_category') ? $this->_article->category_title : ''; $this->categoryLink = $this->_articleParams->get('link_category') ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catid)) : ''; $this->parentCategory = $this->_articleParams->get('show_category') && $this->_article->parent_id != 1 ? $this->_article->parent_title : ''; $this->parentCategoryLink = $this->_articleParams->get('link_parent_category') ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_id)) : ''; } } PKu>\5v&v& ArtxPage.phpnuW+Apage = $page; } /** * Checks whether Joomla! has system messages to display. */ public function hasMessages() { $app = JFactory::getApplication(); $messages = $app->getMessageQueue(); if (is_array($messages) && count($messages)) foreach ($messages as $msg) if (isset($msg['type']) && isset($msg['message'])) return true; return false; } /** * Returns true when one of the given positions contains at least one module. * Example: * if ($obj->containsModules('top1', 'top2', 'top3')) { * // the following code will be executed when one of the positions contains modules: * ... * } */ public function containsModules() { foreach (func_get_args() as $position) if (0 != $this->page->countModules($position)) return true; return false; } /** * Builds list of positions, collapsing the empty ones. * * Samples: * Four positions: * No empty positions: 25%:25%:25%:25% * With one empty position: -:50%:25%:25%, 50%:-:25%:25%, 25%:50%:-:25%, 25%:25%:50%:- * With two empty positions: -:-:75%:25%, -:50%:-:50%, -:50%:50%:-, -:50%:50%:-, 75%:-:-:25%, 50%:-:50%:-, 25%:75%:-:- * One non-empty position: 100% * Three positions: * No empty positions: 33%:33%:34% * With one empty position: -:66%:34%, 50%:-:50%, 33%:67%:- * One non-empty position: 100% */ public function positions($positions, $style) { // Build $cells by collapsing empty positions: $cells = array(); $buffer = 0; $cell = null; foreach ($positions as $name => $width) { if ($this->containsModules($name)) { $cells[$name] = $buffer + $width; $buffer = 0; $cell = $name; } else if (null == $cell) $buffer += $width; else $cells[$cell] += $width; } // Backward compatibility: // For three equal width columns with empty center position width should be 50/50: if (3 == count($positions) && 2 == count($cells)) { $columns1 = array_keys($positions); $columns2 = array_keys($cells); if (33 == $positions[$columns1[0]] && 33 == $positions[$columns1[1]] && 34 == $positions[$columns1[2]] && $columns2[0] == $columns1[0] && $columns2[1] == $columns1[2]) $cells[$columns2[0]] = 50; $cells[$columns2[1]] = 50; } // Render $cells: if (count($cells) == 0) return ''; $result = '
'; $result .= '
'; foreach ($cells as $name => $width) $result .='
' . $this->position($name, $style) . '
'; $result .= '
'; $result .= '
'; return $result; } public function position($position, $style = null) { return ''; } /** * Wraps component content into article style unless it is not wrapped already. * * The componentWrapper method gets the content of the 'component' buffer and searches for the '
' string in it. * Then it wraps content of the buffer with art-post. */ public function componentWrapper() { if ($this->page->getType() != 'html') return; $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); $layout = JRequest::getCmd('layout'); $content = $this->page->getBuffer('component'); // Workarounds for Joomla bugs and inconsistencies: switch ($option) { case "com_content": switch ($view) { case "form": if ("edit" == $layout) $content = str_replace('

updateInfo->stuck):?>

escape($this->updateInfo->extInfo->title)); ?>

updateInfo->hasUpdates ? 'hasupdates' : 'noupdates'; $auth = $this->config->getAuthorization(); $auth = empty($auth) ? '' : '?'.$auth; ?> needsAuth): ?>

updateInfo->extInfo->version ?>
updateInfo->version ?>
updateInfo->date ?>

updateInfo->hasUpdates):?> needsAuth ? 'disabled="disabled"' : ''?>

Powered by Akeeba Live Update

PK>\5FYYtmpl/startupdate.phpnuW+A */ defined('_JEXEC') or die(); ?>

Powered by Akeeba Live Update

PK>\ g,, xmlslurp.phpnuW+A */ defined('_JEXEC') or die(); class LiveUpdateXMLSlurp extends JObject { private $_info = array(); public function getInfo($extensionName, $xmlName) { if(!array_key_exists($extensionName, $this->_info)) { $this->_info[$extensionName] = $this->fetchInfo($extensionName, $xmlName); } return $this->_info[$extensionName]; } /** * Gets the version information of an extension by reading its XML file * @param string $extensionName The name of the extension, e.g. com_foobar, mod_foobar, plg_foobar or tpl_foobar. * @param string $xmlName The name of the XML manifest filename. If empty uses $extensionName.xml */ private function fetchInfo($extensionName, $xmlName) { $type = strtolower(substr($extensionName,0,3)); switch($type) { case 'com': return $this->getComponentData($extensionName, $xmlName); break; case 'mod': return $this->getModuleData($extensionName, $xmlName); break; case 'plg': return $this->getPluginData($extensionName, $xmlName); break; case 'tpl': return $this->getTemplateData($extensionName, $xmlName); break; case 'pkg': return $this->getPackageData($extensionName, $xmlName); break; case 'lib': return $this->getPackageData($extensionName, $xmlName); break; default: if(strtolower(substr($extensionName, 0, 4)) == 'file') { return $this->getPackageData($extensionName, $xmlName); } else { return array('version'=>'', 'date'=>''); } } } /** * Gets the version information of a component by reading its XML file * @param string $extensionName The name of the extension, e.g. com_foobar * @param string $xmlName The name of the XML manifest filename. If empty uses $extensionName.xml */ private function getComponentData($extensionName, $xmlName) { $extensionName = strtolower($extensionName); $path = JPATH_ADMINISTRATOR.'/components/'.$extensionName; $altExtensionName = substr($extensionName,4); jimport('joomla.filesystem.file'); if(JFile::exists("$path/$xmlName")) { $filename = "$path/$xmlName"; } elseif(JFile::exists("$path/$extensionName.xml")) { $filename = "$path/$extensionName.xml"; } elseif(JFile::exists("$path/$altExtensionName.xml")) { $filename = "$path/$altExtensionName.xml"; } elseif(JFile::exists("$path/manifest.xml")) { $filename = "$path/manifest.xml"; } else { $filename = $this->searchForManifest($path); if($filename === false) $filename = null; } if(empty($filename)) { return array('version' => '', 'date' => '', 'xmlfile' => ''); } $xml = JFactory::getXMLParser('Simple'); if (!$xml->loadFile($filename)) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } if ( ($xml->document->name() != 'install') && ($xml->document->name() != 'extension') ) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } $data = array(); $element = & $xml->document->version[0]; $data['version'] = $element ? $element->data() : ''; $element = & $xml->document->creationDate[0]; $data['date'] = $element ? $element->data() : ''; $data['xmlfile'] = $filename; return $data; } /** * Gets the version information of a module by reading its XML file * @param string $extensionName The name of the extension, e.g. mod_foobar * @param string $xmlName The name of the XML manifest filename. If empty uses $extensionName.xml */ private function getModuleData($extensionName, $xmlName) { $extensionName = strtolower($extensionName); $altExtensionName = substr($extensionName,4); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); $path = JPATH_SITE.'/modules/'.$extensionName; if(!JFolder::exists($path)) { $path = JPATH_ADMINISTRATOR.'/modules/'.$extensionName; } if(!JFolder::exists($path)) { // Joomla! 1.5 // 1. Check front-end $path = JPATH_ADMINISTRATOR.'/modules'; $filename = "$path/$xmlName"; if(!JFile::exists($filename)) { $filename = "$path/$extensionName.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$altExtensionName.xml"; } // 2. Check front-end if(!JFile::exists($filename)) { $path = JPATH_SITE.'/modules'; $filename = "$path/$xmlName"; if(!JFile::exists($filename)) { $filename = "$path/$extensionName.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$altExtensionName.xml"; } if(!JFile::exists($filename)) { return array('version' => '', 'date' => ''); } } } else { // Joomla! 1.6 $filename = "$path/$xmlName"; if(!JFile::exists($filename)) { $filename = "$path/$extensionName.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$altExtensionName.xml"; } if(!JFile::exists($filename)) { return array('version' => '', 'date' => ''); } } if(empty($filename)) { return array('version' => '', 'date' => '', 'xmlfile' => ''); } $xml = JFactory::getXMLParser('Simple'); if (!$xml->loadFile($filename)) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } if ($xml->document->name() != 'install') { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } $data = array(); $element = & $xml->document->version[0]; $data['version'] = $element ? $element->data() : ''; $element = & $xml->document->creationDate[0]; $data['date'] = $element ? $element->data() : ''; $data['xmlfile'] = $filename; return $data; } /** * Gets the version information of a plugin by reading its XML file * @param string $extensionName The name of the plugin, e.g. plg_foobar * @param string $xmlName The name of the XML manifest filename. If empty uses $extensionName.xml */ private function getPluginData($extensionName, $xmlName) { $extensionName = strtolower($extensionName); $altExtensionName = substr($extensionName,4); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); $base = JPATH_PLUGINS; // Get a list of directories $stack = JFolder::folders($base,'.',true,true); foreach($stack as $path) { $filename = "$path/$xmlName"; if(JFile::exists($filename)) break; $filename = "$path/$extensionName.xml"; if(JFile::exists($filename)) break; $filename = "$path/$altExtensionName.xml"; if(JFile::exists($filename)) break; } if(!JFile::exists($filename)) { return array('version' => '', 'date' => '', 'xmlfile' => ''); } $xml = JFactory::getXMLParser('Simple'); if (!$xml->loadFile($filename)) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } if ($xml->document->name() != 'install') { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } $data = array(); $element = & $xml->document->version[0]; $data['version'] = $element ? $element->data() : ''; $element = & $xml->document->creationDate[0]; $data['date'] = $element ? $element->data() : ''; $data['xmlfile'] = $filename; return $data; } /** * Gets the version information of a template by reading its XML file * @param string $extensionName The name of the template, e.g. tpl_foobar * @param string $xmlName The name of the XML manifest filename. If empty uses $extensionName.xml or templateDetails.xml */ private function getTemplateData($extensionName, $xmlName) { $extensionName = strtolower($extensionName); $altExtensionName = substr($extensionName,4); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); // First look for administrator templates $path = JPATH_THEMES.'/'.$altExtensionName; if(!JFolder::exists($path)) { // Then look for front-end templates $path = JPATH_SITE.'/templates/'.$altExtensionName; if(!JFolder::exists($path)) return array('version' => '', 'date' => ''); } $filename = "$path/$xmlName"; if(!JFile::exists($filename)) { $filename = "$path/templateDetails.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$extensionName.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$altExtensionName.xml"; } if(!JFile::exists($filename)) { return array('version' => '', 'date' => '', 'xmlfile' => ''); } $xml = JFactory::getXMLParser('Simple'); if (!$xml->loadFile($filename)) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } if ($xml->document->name() != 'install') { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } $data = array(); $element = & $xml->document->version[0]; $data['version'] = $element ? $element->data() : ''; $element = & $xml->document->creationDate[0]; $data['date'] = $element ? $element->data() : ''; $data['xmlfile'] = $filename; return $data; } /** * This method parses the manifest information of package, library and file * extensions. All of those extensions do not store their manifests in the * extension's directory, but in administrator/manifests. Kudos to @mbabker * for sharing this method! * * @param string $extensionName * @param string $xmlName * @return type */ private function getPackageData($extensionName, $xmlName) { $extensionName = strtolower($extensionName); $altExtensionName = substr($extensionName,4); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); $path = JPATH_ADMINISTRATOR.'/manifests/packages'; $filename = "$path/$xmlName"; if(!JFile::exists($filename)) { $filename = "$path/$extensionName.xml"; } if(!JFile::exists($filename)) { $filename = "$path/$altExtensionName.xml"; } if(!JFile::exists($filename)) { return array('version' => '', 'date' => ''); } if(empty($filename)) { return array('version' => '', 'date' => '', 'xmlfile' => ''); } $xml = JFactory::getXMLParser('Simple'); if (!$xml->loadFile($filename)) { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } if ($xml->document->name() != 'extension') { unset($xml); return array('version' => '', 'date' => '', 'xmlfile' => ''); } $data = array(); $element = & $xml->document->version[0]; $data['version'] = $element ? $element->data() : ''; $element = & $xml->document->creationDate[0]; $data['date'] = $element ? $element->data() : ''; $data['xmlfile'] = $filename; return $data; } /** * Scans a directory for XML manifest files. The first XML file to be a * manifest wins. * * @var $path string The path to look into * * @return string|bool The full path to a manifest file or false if not found */ private function searchForManifest($path) { jimport('joomla.filesystem.folder'); $files = JFolder::files($path, '\.xml$', false, true); if(!empty($files)) foreach($files as $filename) { $xml = JFactory::getXMLParser('simple'); $result = $xml->loadFile($filename); if(!$result) continue; if(($xml->document->name() != 'install') && ($xml->document->name() != 'extension') && ($xml->document->name() != 'mosinstall')) continue; unset($xml); return $filename; } return false; } }PK+?\R DetailLevel.class.phpnuW+APK+?\%eeDocStatus.class.phpnuW+ADocStatus::$Any) * and indicates the state of the document in tax history. * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ class DocStatus extends Enum { /** * A temporary document not saved (DocumentType was SalesOrder, PurchaseOrder, ReturnOrder) * * @var unknown_type */ public static $Temporary= 'Temporary'; /** * A saved document (DocumentType was SalesInvoice, PurchaseInvoice, ReturnInvoice) ready to be posted. * * @var DocStatus */ public static $Saved = 'Saved'; /** * A posted document (not committed). * * @var DocStatus */ public static $Posted = 'Posted'; /** * A posted document that has been committed. * * @var DocStatus */ public static $Committed = 'Committed'; /** * A committed document that has been cancelled. * * @var DocStatus */ public static $Cancelled = 'Cancelled'; /** * Enter description here... * * @var DocStatus */ public static $Adjusted = 'Adjusted'; /** * Any status (used for searching) * * @var DocStatus */ public static $Any = 'Any'; public static function Values() { return array( DocStatus::$Temporary, DocStatus::$Saved, DocStatus::$Posted, DocStatus::$Committed, DocStatus::$Cancelled, DocStatus::$Adjusted, DocStatus::$Any ); } // Unfortunate boiler plate due to polymorphism issues on static functions public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); } } ?>PK+?\xJBaseResult.class.phpnuW+ATransactionId; } /** * Indicates whether operation was successfully completed or not. * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\ Y DynamicSoapClient.class.phpnuW+Aconfig = $config; } public function __call($n,$args) { if(!class_exists('CancelTaxResult')) require (VMAVALARA_CLASS_PATH.DS.'CancelTaxResult.class.php'); $result = null; $profileHeader = new SoapHeader('http://avatax.avalara.com/services','Profile',new SoapVar($this->profileXML(),XSD_ANYXML)); $securityHeader = new SoapHeader('http://avatax.avalara.com/services','Security',new SoapVar($this->securityXML(),XSD_ANYXML)); if(!class_exists('Message')) require (VMAVALARA_CLASS_PATH.DS.'Message.class.php'); $result = $this->__soapCall($n,$args,NULL,array($securityHeader,$profileHeader)); return $result; } private function securityXML() { return ''. ''. ''.$this->config->account.''. ''.$this->config->license.''. //2005-11-22T06:33:26.203Z ''. ''; } private function profileXML() { return ''. ''.$this->config->name.''. ''.$this->config->client.''. ''.$this->config->adapter.''. ''; } } ?> PK+?\ExemptionCertificate.class.phpnuW+AAvaCertId=$value;} // string public function getAvaCertId(){return $this->AvaCertId;} // string public function setJurisdictions($value){$this->Jurisdictions=$value;} // ArrayOfJurisdiction public function getJurisdictions(){return $this->Jurisdictions;} // ArrayOfJurisdiction public function setCustomerCodes($value){$this->CustomerCodes=$value;} // ArrayOfString public function getCustomerCodes(){return $this->CustomerCodes;} // ArrayOfString public function setCustomerType($value){$this->CustomerType=$value;} // string public function getCustomerType(){return $this->CustomerType;} // string public function setLocationName($value){$this->LocationName=$value;} // string public function getLocationName(){return $this->LocationName;} // string public function setLocationCode($value){$this->LocationCode=$value;} // string public function getLocationCode(){return $this->LocationCode;} // string public function setCertificateStatus($value){$this->CertificateStatus=$value;} // CertificateStatus public function getCertificateStatus(){return $this->CertificateStatus;} // CertificateStatus public function setReviewStatus($value){$this->ReviewStatus=$value;} // ReviewStatus public function getReviewStatus(){return $this->ReviewStatus;} // ReviewStatus public function setCreatedDate($value){$this->CreatedDate=$value;} // dateTime public function getCreatedDate(){return $this->CreatedDate;} // dateTime public function setModifiedDate($value){$this->ModifiedDate=$value;} // dateTime public function getModifiedDate(){return $this->ModifiedDate;} // dateTime public function setReceivedDate($value){$this->ReceivedDate=$value;} // dateTime public function getReceivedDate(){return $this->ReceivedDate;} // dateTime public function setBusinessName($value){$this->BusinessName=$value;} // string public function getBusinessName(){return $this->BusinessName;} // string public function setAddress1($value){$this->Address1=$value;} // string public function getAddress1(){return $this->Address1;} // string public function setAddress2($value){$this->Address2=$value;} // string public function getAddress2(){return $this->Address2;} // string public function setCity($value){$this->City=$value;} // string public function getCity(){return $this->City;} // string public function setRegion($value){$this->Region=$value;} // string public function getRegion(){return $this->Region;} // string public function setCountry($value){$this->Country=$value;} // string public function getCountry(){return $this->Country;} // string public function setPostalCode($value){$this->PostalCode=$value;} // string public function getPostalCode(){return $this->PostalCode;} // string public function setPhone($value){$this->Phone=$value;} // string public function getPhone(){return $this->Phone;} // string public function setEmail($value){$this->Email=$value;} // string public function getEmail(){return $this->Email;} // string public function setSignedDate($value){$this->SignedDate=$value;} // dateTime public function getSignedDate(){return $this->SignedDate;} // dateTime public function setSignerName($value){$this->SignerName=$value;} // string public function getSignerName(){return $this->SignerName;} // string public function setSignerTitle($value){$this->SignerTitle=$value;} // string public function getSignerTitle(){return $this->SignerTitle;} // string public function setBusinessDescription($value){$this->BusinessDescription=$value;} // string public function getBusinessDescription(){return $this->BusinessDescription;} // string public function setSellerPropertyDescription($value){$this->SellerPropertyDescription=$value;} // string public function getSellerPropertyDescription(){return $this->SellerPropertyDescription;} // string public function setCertificateUsage($value){$this->CertificateUsage=$value;} // CertificateUsage public function getCertificateUsage(){return $this->CertificateUsage;} // CertificateUsage public function setIsPartialExemption($value){$this->IsPartialExemption=$value;} // boolean public function getIsPartialExemption(){return $this->IsPartialExemption;} // boolean public function setExemptReasonCode($value){$this->ExemptReasonCode=$value;} // string public function getExemptReasonCode(){return $this->ExemptReasonCode;} // string public function setExemptFormName($value){$this->ExemptFormName=$value;} // string public function getExemptFormName(){return $this->ExemptFormName;} // string public function setCustom1($value){$this->Custom1=$value;} // string public function getCustom1(){return $this->Custom1;} // string public function setCustom2($value){$this->Custom2=$value;} // string public function getCustom2(){return $this->Custom2;} // string public function setCustom3($value){$this->Custom3=$value;} // string public function getCustom3(){return $this->Custom3;} // string } ?> PK+?\*SJJGetTaxHistoryResult.class.phpnuW+AGetTaxRequest; } /** * Gets the original {@link GetTaxResult} for the document. * * @return GetTaxResult */ public function getGetTaxResult() { return $this->GetTaxResult; } // BaseResult innards - work around a bug in SoapClient /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\$uH<<PostTaxResult.class.phpnuW+ATransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\\ApplyPaymentRequest.class.phpnuW+ADocType=DocumentType::$SalesOrder; } /** * Sets the companyCode value for this ApplyPaymentRequest. * * @param string $value */ public function setCompanyCode($value){ $this->CompanyCode=$value;} //string /** * Sets the docCode value for this ApplyPaymentRequest. * * @param DocumentType $value */ public function setDocType($value){ $this->DocType=$value;} //DocumentType /** * Sets the docType value for this ApplyPaymentRequest. * * @param string $value */ public function setDocCode($value){ $this->DocCode=$value;} //string /** * PaymentDate should be in the format yyyy-mm-dd * * @param date $value */ public function setPaymentDate($value){ $this->PaymentDate=$value;} //date /** * Gets the companyCode value for this ApplyPaymentRequest. * * @return string */ public function getCompanyCode(){ return $this->CompanyCode;} //string /** * Gets the docType value for this ApplyPaymentRequest. * * @return DocumentType */ public function getDocType(){ return $this->DocType;} //DocumentType /** * Gets the docCode value for this ApplyPaymentRequest. * * @return unknown */ public function getDocCode(){ return $this->DocCode;} //string /** * PaymentDate should be in the format yyyy-mm-dd * * @param date $value */ public function getPaymentDate(){ return $this->PaymentDate;} //date } ?>PK+?\jV[[ValidateRequest.class.phpnuW+A * Example: * $svc = new AddressServiceSoap(); * * $address = new Address(); * $address->setLine1("900 Winslow Way"); * $address->setCity("Bainbridge Island"); * $address->setRegion("WA"); * $address->setPostalCode("98110"); * * ValidateRequest validateRequest = new ValidateRequest(); * validateRequest.setAddress(address); * validateRequest.setTextCase(TextCase.Upper); * * ValidateResult result = svc.validate(validateRequest); * ArrayOfValidAddress arrValids = result.getValidAddresses(); * int numAddresses = (arrValids == null || * arrValids.getValidAddress() == null ? 0 : * arrValids.getValidAddress().length); * System.out.println("Number of Addresses is " + numAddresses); * * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address */ //public function validate($address, $textCase = 'Default', $coordinates = false) //{ // $request = new ValidateRequest($address, ($textCase ? $textCase : TextCase::$Default), $coordinates); // return $this->client->Validate(array('ValidateRequest' => $request))->ValidateResult; //} class ValidateRequest { private $Address; private $TextCase = 'Default'; private $Coordinates = false; private $Taxability=false; public function __construct($address = null, $textCase = 'Default', $coordinates = false) { $this->setAddress($address); $this->setTextCase($textCase); $this->setCoordinates($coordinates); } // mutators /** * The address to Validate. *
     * Example:
     * $address = new Address();
     * $address->setLine1("900 Winslow Way");
     * $address->setCity("Bainbridge Island");
     * $address->setRegion("WA");
     * $address->setPostalCode("98110");
     *
     * $validateRequest = new ValidateRequest();
     * $validateRequest->setAddress(address);
     * $validateRequest->setTextCase(TextCase::$Upper);
     *
     * $result = svc->validate(validateRequest);
     * 
* * @var Address */ public function setAddress(&$value) { $this->Address = $value; return $this; } /** * The casing to apply to the validated address(es). *
     * Example:
     * Example:
     * $address = new Address();
     * $address->setLine1("900 Winslow Way");
     * $address->setCity("Bainbridge Island");
     * $address->setRegion("WA");
     * $address->setPostalCode("98110");
     *
     * $validateRequest = new ValidateRequest();
     * $validateRequest->setAddress(address);
     * $validateRequest->setTextCase(TextCase::$Upper);
     *
     * $result = svc->validate(validateRequest);
     * 
* * @var string * @see TextCase */ public function setTextCase($value) { if($value) { TextCase::Validate($value); $this->TextCase = $value; } else { $this->TextCase = TextCase::$Default; } return $this; } /** * Sets whether to fetch the coordinates value for this ValidateRequest. *

* True will return the @see ValidAddress#Latitude and @see ValidAddress#Longitude values for the @see ValidAddresses * Default value is false *

* @var boolean */ public function setCoordinates($value) { $this->Coordinates = ($value ? true : false); return $this; } //@author:swetal public function setTaxability($value) { $this->Taxability=$value; } // accessors /** * The address to Validate. *
     * Example:
     * $address = new Address();
     * $address->setLine1("900 Winslow Way");
     * $address->setCity("Bainbridge Island");
     * $address->setRegion("WA");
     * $address->setPostalCode("98110");
     *
     * $validateRequest = new ValidateRequest();
     * $validateRequest->setAddress(address);
     * $validateRequest->setTextCase(TextCase::$Upper);
     *
     * $result = svc->validate(validateRequest);
     * 
* * @return Address */ public function getAddress() { return $this->Address; } /** * The casing to apply to the validated address(es). *
     * Example:
     * Example:
     * $address = new Address();
     * $address->setLine1("900 Winslow Way");
     * $address->setCity("Bainbridge Island");
     * $address->setRegion("WA");
     * $address->setPostalCode("98110");
     *
     * $validateRequest = new ValidateRequest();
     * $validateRequest->setAddress(address);
     * $validateRequest->setTextCase(TextCase::$Upper);
     *
     * $result = svc->validate(validateRequest);
     * 
* * @return string * @see TextCase */ public function getTextCase() { return $this->TextCase; } /** * Returns whether to return the coordinates value for this ValidateRequest. *

* True will return the @see ValidAddress#Latitude and @see ValidAddress#Longitude values for the @see ValidAddresses * Default value is false *

* @return boolean */ public function getCoordinates() { return $this->Coordinates; } } ?> PK+?\8`? ? Customer.class.phpnuW+ACompanyCode=$value;} // string public function getCompanyCode(){return $this->CompanyCode;} // string public function setCustomerCode($value){$this->CustomerCode=$value;} // string public function getCustomerCode(){return $this->CustomerCode;} // string public function setNewCustomerCode($value){$this->NewCustomerCode=$value;} // string public function getNewCustomerCode(){return $this->NewCustomerCode;} // string public function setCustomerType($value){$this->CustomerType=$value;} // string public function getCustomerType(){return $this->CustomerType;} // string public function setCustomerName($value){$this->CustomerName=$value;} // string public function getCustomerName(){return $this->CustomerName;} // string public function setAttn($value){$this->Attn=$value;} // string public function getAttn(){return $this->Attn;} // string public function setAddress1($value){$this->Address1=$value;} // string public function getAddress1(){return $this->Address1;} // string public function setAddress2($value){$this->Address2=$value;} // string public function getAddress2(){return $this->Address2;} // string public function setCity($value){$this->City=$value;} // string public function getCity(){return $this->City;} // string public function setRegion($value){$this->Region=$value;} // string public function getRegion(){return $this->Region;} // string public function setPostalCode($value){$this->PostalCode=$value;} // string public function getPostalCode(){return $this->PostalCode;} // string public function setCountry($value){$this->Country=$value;} // string public function getCountry(){return $this->Country;} // string public function setPhone($value){$this->Phone=$value;} // string public function getPhone(){return $this->Phone;} // string public function setFax($value){$this->Fax=$value;} // string public function getFax(){return $this->Fax;} // string public function setEmail($value){$this->Email=$value;} // string public function getEmail(){return $this->Email;} // string public function setParentCustomerCode($value){$this->ParentCustomerCode=$value;} // string public function getParentCustomerCode(){return $this->ParentCustomerCode;} // string } ?> PK+?\AddressType.class.phpnuW+A AddressType::$FirmOrCompany, 'GeneralDelivery' => AddressType::$GeneralDelivery, 'HighRise' => AddressType::$HighRise, 'POBox' => AddressType::$POBox, 'RuralRoute' => AddressType::$RuralRoute, 'StreetOrResidential' => AddressType::$StreetOrResidential ); } // Unfortunate boiler plate due to polymorphism issues on static functions public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); } } ?> PK+?\ڇTaxOverrideType.class.phpnuW+APK+?\R R Message.class.phpnuW+ASummary; } /** * Gets the details of the message. * * @return string */ public function getDetails() { return $this->Details; } /** *Gets the URL to help page for this message. * * @return unknown */ public function getHelpLink() { return $this->HelpLink; } /** * Gets the item the message refers to, if applicable. Used to indicate a missing or incorrect value. * * @return unknown */ public function getRefersTo() { return $this->RefersTo; } /** * Gets the Severity Level of the message. * * @return unknown */ public function getSeverity() { return $this->Severity; } /** * Gets the source of the message. * * @return unknown */ public function getSource() { return $this->Source; } /** * Gets the name of the message. * * @return unknown */ public function getName() { return $this->Name; } // mutators public function setSummary($value) { $this->Summary = $value; return $this; } public function setDetails($value) { $this->Details = $value; return $this; } public function setHelpLink($value) { $this->HelpLink = $value; return $this; } public function setRefersTo($value) { $this->RefersTo = $value; return $this; } public function setSeverity($value) { SeverityLevel::Validate($value); $this->Severity = $value; return $this; } public function setSource($value) { $this->Source = $value; return $this; } public function setName($value) { $this->Name = $value; return $this; } } ?>PK+?\릵BJurisdictionType.class.phpnuW+APK+?\}DocumentType.class.phpnuW+APK+?\NHAddCustomerRequest.class.phpnuW+ACustomer=$value;} // Customer /** * Gets the customer value for this AddCustomerRequest. * @return Customer */ public function getCustomer(){return $this->Customer;} // Customer } ?> PK+?\x"iiApplyPaymentResult.class.phpnuW+APK+?\ĩKTaxRequest.class.phpnuW+A * This is a unique AvaTax identifier for this document. If known, the * CompanyCode, DocCode, and DocType are not needed. * * @access public * @var string */ //protected $DocId; /** * Sets the client application company reference code. *
If docId is specified, this is not needed. * * @param string */ protected $HashCode; public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; } /** * The original document's type, such as Sales Invoice or Purchase Invoice. * * @var string * @see DocumentType */ public function setDocType($value) { DocumentType::Validate($value); $this->DocType=$value; return $this; } /** * Sets the Document Code, that is the internal reference code used by the client application. *
If docId is specified, this is not needed. * * @var string */ public function setDocCode($value) { $this->DocCode = $value; return $this; } /** * A unique document ID. *

* This is a unique AvaTax identifier for this document. If known, the * CompanyCode, DocCode, and DocType are not needed. * * @var string * @see GetTaxResult#DocId */ //public function setDocId($value) { $this->DocId = $value; return $this; } /** * Sets the hashCode value for this GetTaxRequest. *

* This should be computed by an SDK developer using some standard algorithm out of the content of the object. This value gets stored in the system and can be retrieved for the cross checking [Internal Reconciliation purpose]. * See sample code for more details *

* @var int */ public function setHashCode($value) { $this->HashCode = $value; return $this; } // Accessors /** * Gets the client application company reference code. * * @return string */ public function getCompanyCode() { return $this->CompanyCode; } /** * Gets the hashCode value for this GetTaxRequest. *

* This should be computed by an SDK developer using some standard algorithm out of the content of the object. This value gets stored in the system and can be retrieved for the cross checking [Internal Reconciliation purpose]. * See sample code for more details *

* @return int */ public function getHashCode() { return $this->HashCode; } /** * The original document's type, such as Sales Invoice or Purchase Invoice. * * @return string * @see DocumentType */ public function getDocType() { return $this->DocType; } /** * Gets the Document Code, that is the internal reference code used by the client application. *
If docId is specified, this is not needed. * * @return string */ public function getDocCode() { return $this->DocCode; } /** * A unique document ID. *

* This is a unique AvaTax identifier for this document. If known, the * CompanyCode, DocCode, and DocType are not needed. * * @return string * @see GetTaxResult#DocId */ //public function getDocId() { return $this->DocId; } public function __construct() { $this->DocType = DocumentType::$SalesOrder; // this is right Document $this->HashCode= 0; } } ?>PK+?\"XGetTaxResult.class.phpnuW+A * See {@link GetTaxRequest#getDocCode} on GetTaxRequest for more information about this member. *

* * @return string */ public function getDocCode() {return $this->DocCode; } /** * AdjustmentDescription set while making AdjustTax call. * * @return string */ public function getAdjustmentDescription() { return $this->AdjustmentDescription; } /** * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified. * * @return int */ public function getAdjustmentReason(){ return $this->AdjustmentReason; } /** * Gets the date on the invoice, purchase order, etc. *

* See {@link GetTaxRequest#getDocDate} on GetTaxRequest for more information about this member. *

* * @return date */ public function getDocDate() {return $this->DocDate; } /** * Tax Date is the date used to calculate tax on the Document. *

* See {@link GetTaxRequest#taxDate} on GetTaxRequest for more information about this member. *

* * @return date */ public function getTaxDate() {return $this->TaxDate; } /** * Gets the Document Type. *

* See {@link GetTaxRequest#DocType} on GetTaxRequest for more information about this member. *

* * @return DocumentType */ public function getDocType() {return $this->DocType; } /** * Gets the document's status after the tax calculation. * * @return DocStatus */ public function getDocStatus() {return $this->DocStatus; } /** * True if the document has been reconciled; Only committed documents can be reconciled. *

* For information on committing documents, see the TaxSvc's * {@link TaxSvcSoap#commitTax} method. For information * on reconciling documents, see the {@link TaxSvcSoap#reconcileTaxHistory} method. *

* * @return boolean */ public function getIsReconciled() {return $this->Reconciled; } /** * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return. * * @return boolean */ public function getLocked() {return $this->Locked; } /** * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date). * * @return dateTime */ public function getTimestamp() {return $this->Timestamp; } /** * The sum of all line {@link Line#getAmount} values. * * @param decimal */ public function getTotalAmount() {return $this->TotalAmount; } /** * Gets the sum of all TaxLine {@link TaxLine#getDiscount} amounts; Typically it * will equal the requested Discount, but, but it is possible that no lines were marked as discounted. * * @return decimal */ public function getTotalDiscount() {return $this->TotalDiscount; } /** * Gets the sum of all TaxLine {@link TaxLine#getExemption} amounts. * * @return decimal * @deprecated See {@link TaxDetail#getExemption}. */ public function getTotalExemption() {return $this->TotalExemption; } /** * Gets the amount the tax is based on; This is the total of all {@link Line} Base amounts; * Typically it will be equal to the document * {@link GetTaxResult#getTotalAmount} - {@link GetTaxRequest#getDiscount} - {@link #getTotalExemption}. * * @return decimal * @deprecated See {@link TaxDetail#getTaxable}. */ public function getTotalTaxable() {return $this->TotalTaxable; } /** * Gets the total tax for the document. * * @return decimal */ public function getTotalTax() {return $this->TotalTax; } /** * HashCode to support Reconciliation. * * @return hashCode */ public function getHashCode() {return $this->HashCode; } /** * Current version of the document. * * @return int */ public function getVersion() {return $this->Version; } /** * Gets the Tax broken down by individual {@link TaxLine}. * * @return taxLines */ public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); } /** * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified. * This is for informational purposes.The TotalTax will still be used for reporting * * @return unknown */ public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;} /** * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary. * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail. * * @return ArrayOfTaxDetail */ public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);} public function getTaxLine($lineNo) { if($this->getTaxLines() != null) { foreach($this->getTaxLines() as $taxLine) { if($lineNo == $taxLine->getNo()) { return $taxLine; } } } } /////////////////////////////////////////////PHP bug requires this copy from BaseResult /////////// /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\  "GetExemptionCertificates.class.phpnuW+AGetExemptionCertificatesRequest=$value;} // GetExemptionCertificatesRequest public function getGetExemptionCertificatesRequest(){return $this->GetExemptionCertificatesRequest;} // GetExemptionCertificatesRequest } ?> PK+?\XׯATConfig.class.phpnuW+A_ivars = ATConfig::$Configurations[$name]; } public function __get($n) { if($n == '_ivars') { return parent::__get($n); } if(isset($this->_ivars[$n])) { return $this->_ivars[$n]; } else if(isset(ATConfig::$Configurations['Default'][$n])) // read missing values from default { return ATConfig::$Configurations['Default'][$n]; } else { return null; } } } /* Specify configurations by name here. You can specify as many as you like */ $__wsdldir = dirname(__FILE__)."/wsdl"; /* This is the default configuration - it is used if no other configuration is specified */ new ATConfig('Default', array( 'url' => 'no url specified', 'addressService' => '/Address/AddressSvc.asmx', 'taxService' => '/Tax/TaxSvc.asmx', 'batchService'=> '/Batch/BatchSvc.asmx', 'avacertService'=> '/AvaCert/AvaCertSvc.asmx', 'addressWSDL' => 'file://'.$__wsdldir.'/Address.wsdl', 'taxWSDL' => 'file://'.$__wsdldir.'/Tax.wsdl', 'batchWSDL' => 'file://'.$__wsdldir.'/BatchSvc.wsdl', 'avacertWSDL' => 'file://'.$__wsdldir.'/AvaCertSvc.wsdl', 'account' => '', 'license' => '', 'adapter' => 'avatax4php,5.10.0.0', 'client' => 'VirtueMart2.0.16', 'name' => 'PHPAdapter', 'trace' => true) // change to false for production ); ?> PK+?\  CancelTaxRequest.class.phpnuW+A * A document can be indicated solely by the DocId if it is known. * Otherwise the request must specify all of CompanyCode, * DocCode, and * DocType in order to uniquely identify the document. *

* * @see CancelTaxResult, DocumentType * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ if(!class_exists('TaxRequest')) require (VMAVALARA_CLASS_PATH.DS.'TaxRequest.class.php'); class CancelTaxRequest extends TaxRequest { private $CancelCode; //Unspecified or PostFailed or DocDeleted or DocVoided or AdjustmentCancelled public function __construct() { if(!class_exists('DocumentType')) require (VMAVALARA_CLASS_PATH.DS.'DocumentType.class.php'); if(!class_exists('CancelCode')) require (VMAVALARA_CLASS_PATH.DS.'CancelCode.class.php'); $this->DocType = DocumentType::$SalesInvoice; // this is right Document $this->CancelCode = CancelCode::$Unspecified; } /** * A code indicating the reason the document is getting canceled. * * @return string * @see CancelCode */ public function getCancelCode() { return $this->CancelCode; } /** * A code indicating the reason the document is getting canceled. * * @var string * @see CancelCode */ public function setCancelCode($value) { CancelCode::Validate($value); $this->CancelCode = $value; return $this; } } ?>PK+?\ !$!$AvaCertSvc.class.phpnuW+ANote: This web service is only available to accounts that have enrolled in the AvaCert service.

* *

* Example: *

 *  $avacertService = new AvaCertSvc('Development');
 *  $result = $avacertService->ping();
 * 
* @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package AvaCert */ class AvaCertSvc extends AvalaraSoapClient { private static $classmap = array( 'AddCustomerRequest' => 'AddCustomerRequest', 'Customer' => 'Customer', 'ExemptionCertificate' => 'ExemptionCertificate', 'Jurisdiction' => 'Jurisdiction', 'CertificateStatus' => 'CertificateStatus', 'ReviewStatus' => 'ReviewStatus', 'CertificateUsage' => 'CertificateUsage', 'RequestType' => 'RequestType', 'AddCustomerResult' => 'AddCustomerResult', 'BaseResult' => 'BaseResult', 'SeverityLevel' => 'SeverityLevel', 'Message' => 'Message', 'Profile' => 'Profile', 'InitiateExemptCert' => 'InitiateExemptCert', 'InitiateExemptCertRequest' => 'InitiateExemptCertRequest', 'GetExemptionCertificates' => 'GetExemptionCertificates', 'GetExemptionCertificatesRequest' => 'GetExemptionCertificatesRequest', 'GetExemptionCertificatesResult' => 'GetExemptionCertificatesResult', 'BaseRequest' => 'BaseRequest', 'CommunicationMode' => 'CommunicationMode', 'InitiateExemptCertResult' => 'InitiateExemptCertResult', 'Ping' => 'Ping', 'PingResult' => 'PingResult', 'IsAuthorized' => 'IsAuthorized', 'IsAuthorizedResult' => 'IsAuthorizedResult', ); public function __construct($configurationName = 'Default') { $config = new ATConfig($configurationName); $this->client = new DynamicSoapClient ( $config->avacertWSDL, array ( 'location' => $config->url.$config->avacertService, 'trace' => $config->trace, 'classmap' => AvaCertSvc::$classmap ), $config ); } /** * This method adds an exempt customer record to AvaCert. This can also be done * within the initiateExemptCert method. It should be used when you only wish to * add the customer and are not yet ready to request a certificate. Use initiateExemptCert * if you wish to both add a customer and request an exempt certificate. * *
   * $customer = new Customer();
   * $customer->setCompanyCode("DEFAULT");
   * $customer->setCustomerCode("AVALARA");
   * $customer->setCustomerName("Avalara, Inc.");
   * $customer->setAddress1("435 Ericksen Ave NE");
   * $customer->setCity("Bainbridge Island");
   * $customer->setRegion("WA");
   * $customer->setPostalCode("98110");
   * $customer->setCountry("US");
   * $customer->setEmail("info@avalara.com");
   * $customer->setPhone("206-826-4900");
   * $customer->setFax("206-780-5011");
   * $customer->setCustomerType("Bill_To");
   *
   * $addCustomerRequest = new AddCustomerRequest();
   * $addCustomerRequest->setCustomer($customer);
   * 
   * $addCustomerResult= $avacertService->addCustomer($addCustomerRequest);
   * 
* * @param AddCustomer $parameters * @return AddCustomerResponse */ public function AddCustomer(AddCustomerRequest $addCustomerRequest) { return $this->client->AddCustomer(array('AddCustomerRequest' => $addCustomerRequest))->AddCustomerResult; } /** * This method initiates a request from AvaCert to the customer for an exemption certificate. * The request will be sent using the designated method (email, fax, post). * It creates or updates the included customer record in the process. * *
   * $customer = new Customer();
   * $customer->setCompanyCode("DEFAULT");
   * $customer->setCustomerCode("AVALARA");
   * $customer->setCustomerName("Avalara, Inc.");
   * $customer->setAddress1("435 Ericksen Ave NE");
   * $customer->setCity("Bainbridge Island");
   * $customer->setRegion("WA");
   * $customer->setPostalCode("98110");
   * $customer->setCountry("US");
   * $customer->setEmail("info@avalara.com");
   * $customer->setPhone("206-826-4900");
   * $customer->setFax("206-780-5011");
   * $customer->setCustomerType("Bill_To");
   *
   * $initiateExemptCertRequest=new InitiateExemptCertRequest();
   * $initiateExemptCertRequest->setCustomer($customer);
   * $initiateExemptCertRequest->setCommunicationMode(CommunicationMode::$Email);
   * $initiateExemptCertRequest->setCustomMessage("Thank you!");
   *
   * $initiateExemptCertResult= $avacertService->initiateExemptCert($initiateExemptCertRequest); 
   * 
* * @param InitiateExemptCert $parameters * @return InitiateExemptCertResponse */ public function InitiateExemptCert(InitiateExemptCertRequest $initiateExemptCertRequest) { return $this->client->InitiateExemptCert(array('InitiateExemptCertRequest' => $initiateExemptCertRequest))->InitiateExemptCertResult; } /** * This method retrieves all certificates from vCert for a particular customer. *

* If only Customer.CustomerCode and Customer.CompanyCode are set, and all other properties in InitiateExemptCertRequest.Customer are empty then the InitiateExemptCert method will not attempt to create/update the customer record in vCert. It will simply initiate a request in vCert. * If any additional properties on InitiateExemptCertRequest.Customer are set then the method will either create/update the customer record in vCert, and then initiate a request in vCert. *

* *
   * $getExemptionCertificatesRequest=new GetExemptionCertificatesRequest();
   * $getExemptionCertificatesRequest->setCompanyCode("Default");	        
   * $dateTime=new DateTime();	    
   * $getExemptionCertificatesRequest->setToDate(date_format($dateTime,"Y-m-d"));	        
   * $dateTime->modify("-10 day");	    
   * $getExemptionCertificatesRequest->setFromDate(date_format($dateTime,"Y-m-d"));
   * $getExemptionCertificatesRequest->setRegion("WA");
   *
   * $getExemptionCertificatesResult = $avacertService->getExemptionCertificates($getExemptionCertificatesRequest);
   * 
* * @param GetExemptionCertificates $parameters * @return GetExemptionCertificatesResponse */ public function GetExemptionCertificates(GetExemptionCertificatesRequest $getExemptionCertificatesRequest) { return $this->client->GetExemptionCertificates(array('GetExemptionCertificatesRequest' => $getExemptionCertificatesRequest))->GetExemptionCertificatesResult; } /** * Verifies connectivity to the web service and returns version information about the service. * * @param Ping $parameters * @return PingResponse */ public function Ping($message = '') { return $this->client->Ping(array('Message' => $message))->PingResult; } /** * Checks authentication of and authorization to one or more operations on the service. *

* This operation allows pre-authorization checking of any or all operations. * It will return a comma delimited set of operation names which will be all or a subset * of the requested operation names. For security, it will never return operation names * other than those requested, i.e. protects against phishing. *

* Example:
* isAuthorized("GetTax,PostTax") * @param IsAuthorized $parameters * @return IsAuthorizedResponse */ public function IsAuthorized(IsAuthorized $parameters) { return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult; } } ?> PK+?\zmP  TaxType.class.phpnuW+APK+?\JSeverityLevel.class.phpnuW+APK+?\cxH66PingResult.class.phpnuW+AExample:
*
 *  $svc = new AddressServiceSoap();
 *
 *  $result = svc->ping();
 *  $numMessages = sizeof($result->getMessages());
 *
 * 
* * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Base */ class PingResult //extends BaseResult { /** * Version string of the pinged service. * @var string */ private $Version; /** * Method returning version string of the pinged service. * @return string */ public function getVersion() { return $this->Version; } // BaseResult innards - workaround a bug in SoapClient /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\| > >GetTaxRequest.class.phpnuW+ADocDate = date("Y-m-d"); $this->Commit=false; $this->HashCode=0; $this->Discount=0.0; $this->DocType=DocumentType::$SalesInvoice; $this->DetailLevel=DetailLevel::$Document; $this->DocCode = date("Y-m-d-H-i-s.u"); $this->CustomerCode='CustomerCodeString'; $this->Lines=array(new Line()); $this->ServiceMode=ServiceMode::$Automatic; $this->ExchangeRate=1.0; $dateTime=new DateTime(); $dateTime->setDate(1900,01,01); $this->ExchangeRateEffDate=$dateTime->format("Y-m-d"); $this->PaymentDate=$dateTime->format("Y-m-d"); } public function prepare() { $this->Addresses = array(); $this->OriginCode = $this->registerAddress($this->OriginAddress); $this->DestinationCode = $this->registerAddress($this->DestinationAddress); foreach($this->Lines as &$line) { $line->registerAddressesIn($this); } return $this; } public function registerAddress(&$address) { if($address == null) { return null; } $index = sizeof($this->Addresses); foreach($this->Addresses as $index=>$a) { if($address->equals($a)) { return $index; } } $index = sizeof($this->Addresses); $this->Addresses[] = $address; $address->setAddressCode ( $index); return $index; } public function postFetch() { $addresses = $this->getAddresses(); $this->OriginAddress = $addresses[$this->OriginCode]; $this->DestinationAddress = $addresses[$this->DestinationCode]; //@author: Swetal //Commenting following foreach loop //Reason is postFetch function is called after getTaxHistory to populate origin and destination address //but taxHistory does not return origin and destination code so with followign loop we can not retrive origin //and destination adress for line. This gives invalid index error if not commented /*foreach($this->getLines() as $line) { $line->postFetchWithAddresses($addresses); }*/ return $this; } /** * Enter description here... * * @param string $value */ public function setAddressCode($value) { $this->AddressCode = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setLine1($value) { $this->Line1 = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setLine2($value) { $this->Line2 = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setLine3($value) { $this->Line3 = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setCity($value) { $this->City = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setRegion($value) { $this->Region = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setPostalCode($value) { $this->PostalCode = $value; return $this; } /** * Enter description here... * * @param string $value */ public function setCountry($value) { $this->Country = $value; return $this; } /** * Mutator * @access public * @param integer */ /** * DocDate should be in the format yyyy-mm-dd * * @param date $value */ public function setDocDate($value) { $this->DocDate = $value; return $this; } //date /** * Sets the client application company reference code. * * @param string $value * */ public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; } //string /** * The document type specifies the category of the document and affects how the document is treated after a tax calculation; see DocumentType for more information about the specific document types. * * @param DocumentType $value * */ public function setDocType($value) { DocumentType::Validate($value); $this->DocType = $value; return $this; } //SalesOrder or SalesInvoice or PurchaseOrder or PurchaseInvoice or ReturnOrder or ReturnInvoice /** * Specifies the level of detail to return. * * @param DetailLevel $value */ public function setDetailLevel($value) { DetailLevel::Validate($value); $this->DetailLevel = $value; return $this; } //Summary or Document or Line or Tax or Diagnostic - enum /** * Sets the Document Code, i.e. the internal reference code used by the client application. * * @param string $value */ public function setDocCode($value) { $this->DocCode = $value; return $this; } //string invoice number /** * The client application salesperson reference code. * * @param string $value */ public function setSalespersonCode($value) { $this->SalespersonCode = $value; return $this; } //string /** * The client application customer reference code. * * @param string $value */ public function setCustomerCode($value) { $this->CustomerCode = $value; return $this; } //string /** * The client application customer or usage type. *

* This is used to determine the exempt status of the transaction based on the exemption tax rules for the * jurisdictions involved. This may also be set at the line level. *

*

* The standard values for the CustomerUsageType (A-L).
A � Federal Government
B � State/Local Govt.
C � Tribal Government
D � Foreign Diplomat
E � Charitable Organization
F � Religious/Education
G � Resale
H � Agricultural Production
I � Industrial Prod/Mfg.
J � Direct Pay Permit
K � Direct Mail
L - Other
*

* @param customerUsageType */ public function setCustomerUsageType($value) { $this->CustomerUsageType = $value; return $this; } //string Entity Usage /** *Purchase Order Number for this document. * * @param string $value */ public function setPurchaseOrderNo($value) { $this->PurchaseOrderNo = $value; return $this; } //string /** * Exemption Number for this document * * @param string $value */ public function setExemptionNo($value) { $this->ExemptionNo = $value; return $this; } //string if not using ECMS which keys on customer code /** * Also referred to as a Store Location, Outlet Id, or Outlet code is a number assigned by the State which identifies a Store location. Some state returns require taxes are broken out separatly for Store Locations. * * @param string $value */ public function setLocationCode($value) { $this->LocationCode = $value; return $this; } //string public function setBatchCode($value) { $this->BatchCode = $value; return $this; } //string /** * The discount amount to apply to the document. * * @param decimal $value */ public function setDiscount($value) { $this->Discount = $value; return $this; } //decimal //public function setTotalTaxOverride($value) { $this->TotalTaxOverride = $value; return $this; } //decimal /** * Set addresses * * @param array $value */ public function setAddresses($value) { $this->Addresses = $value; return $this; } //array /** * Set tax lines * * @param array $value */ public function setLines($value) { $this->Lines = $value; return $this; } //array public function setHashCode($value) { $this->HashCode = $value; return $this; } //int /** * This has been defaulted to False ; invoice will be committed if this flag has been set to True. * * @param boolean $value * */ public function setCommit($value) { $this->Commit = $value; return $this; } //boolean //public function setIsTotalTaxOverriden($value) { $this->IsTotalTaxOverriden = ($value ? true : false); return $this; } //boolean /** * Set ship from address * * @param Address $value */ public function setOriginAddress($value) { $this->OriginAddress = $value; return $this; } //address /** * set ship to address * * @param Address $value */ public function setDestinationAddress($value) { $this->DestinationAddress = $value; return $this; } //address //@author:swetal /** * ExchangeRate indicates the currency exchange rate from the transaction currency (indicated by CurrencyCode) to the company base currency. * This only needs to be set if the transaction currency is different than the company base currency. It defaults to 1.0. * * @param decimal $value */ public function setExchangeRate($value) { $this->ExchangeRate = $value; return $this; } //decimal /** * 3 character ISO 4217 currency code. * * @param string $value */ public function setCurrencyCode($value) { $this->CurrencyCode = $value; return $this; } //string /** * It provides the ability to controls whether tax is calculated locally or remotely when using an AvaLocal server. * The default is Automatic which calculates locally unless remote is necessary for non-local addresses. * * @param ServiceMode $value */ public function setServiceMode($value) { $this->ServiceMode = $value; return $this; } //type: ServiceMode /** * PaymentDate indicates the date when payment was received for the document. It is only applicable for cash-basis accounting and does not need to be set otherwise. * It defaults to 1/1/1900 which indicates no payment. The new TaxSvc.ApplyPayment method may be used to apply a payment to an existing invoice. * * @param date $value */ public function setPaymentDate($value) { $this->PaymentDate = $value; return $this; } //date /** * ExchangeRateEffDate indicates the effective date of the exchange rate. * It should be set in conjunction with ExchangeRate. It will default to the DocDate if not set. * * @param date $value */ public function setExchangeRateEffDate($value){ $this->ExchangeRateEffDate = $value; return $this; } //date /** *TaxOverride for the document. * * @param TaxOverride $value */ public function setTaxOverride($value){ $this->TaxOverride=$value;} //tax override public function setReferenceCode($value) { $this->ReferenceCode=$value; } /**#@+ * Accessor * @access public * @return string */ public function getCompanyCode() { return $this->CompanyCode;} //string public function getDocType() { return $this->DocType;} //SalesOrder or SalesInvoice or PurchaseOrder or PurchaseInvoice or ReturnOrder or ReturnInvoice public function getDocCode() { return $this->DocCode;} //string invoice number public function getDocDate() { return $this->DocDate;} //date public function salespersonCode() { return $this->SalespersonCode;} //string public function getCustomerCode() { return $this->CustomerCode;} //string public function getCustomerUsageType() { return $this->CustomerUsageType;} //string Entity Usage public function getDiscount() { return $this->Discount;} //decimal //public function getTotalTaxOverride() { return $this->TotalTaxOverride;} //decimal public function getPurchaseOrderNo() { return $this->PurchaseOrderNo;} //string public function getExemptionNo() { return $this->ExemptionNo;} //string if not using ECMS which keys on customer code public function getAddresses() { // this is kind of icky // when we build one of these to send, it is an array of Address // however, when it is fetched, there is an extra std::Object stuck in place to represent the array // which contains the array in an ivar called Address. Such are the vagaries of // the php SoapClient. //@swetal //Changed from $this->Addresses to $this->Addresses->BaseAddress return is_array($this->Addresses) ? $this->Addresses : EnsureIsArray($this->Addresses->BaseAddress); } //array public function getLines() { return is_array($this->Lines) ? $this->Lines : EnsureIsArray($this->Lines->Line); } //array public function getDetailLevel() { return $this->DetailLevel;} //Summary or Document or Line or Tax or Diagnostic ********************************** make class public function getHashCode() { return $this->HashCode;} //int public function getLocationCode() { return $this->LocationCode;} //string public function getBatchCode() { return $this->BatchCode;} //string public function getCommit() { return $this->Commit;} //boolean //public function getIsTotalTaxOverriden() { return $this->IsTotalTaxOverriden;} //boolean public function getOriginAddress() { return $this->OriginAddress;} //address public function getDestinationAddress() { return $this->DestinationAddress;} //address //@author:swetal public function getExchangeRate() { return $this->ExchangeRate; } //decimal public function getCurrencyCode() { return $this->CurrencyCode; } //string public function getServiceMode() { return $this->ServiceMode; } //type: ServiceMode public function getPaymentDate() { return $this->PaymentDate; } //date public function getExchangeRateEffDate(){ return $this->ExchangeRateEffDate; } //date public function getTaxOverride(){ return $this->TaxOverride;} public function getReferenceCode() { return $this->ReferenceCode; } //@author:swetal //Adding getLine function which returns line based on line number public function getLine($lineNo) { if($this->Lines != null) { foreach($this->getLines() as $line) { if($lineNo == $line->getNo()) { return $line; } } } } /**#@-*/ } ?>PK+?\*-.y y SearchTaxHistoryResult.class.phpnuW+A * If LastDocId was not specified by the {@link ReconcileTaxHistoryRequest}, * then this is the first set of records that need reconciliation. If LastDocId was specified, * the collection represents the next set of records after LastDocId. If the collection is * empty, then all records have been reconciled and the result's LastDocId will be set to the * last record of the last result set. *
* The GetTaxResults are returned in an Axis wrapper {@link ArrayOfGetTaxResult}, which has a * raw GetTaxResult[] array accessible via its {@link ArrayOfGetTaxResult#getGetTaxResult} method. *
     * Example:
     * $result = $taxSvc->reconcileTaxHistory($request);
     * foreach($result->getTaxResults() as $taxResult)
     * {
     *      ...
     * }
     *
     * 
* @see GetTaxResult * @return array */ public function getTaxResults() { return EnsureIsArray($this->GetTaxResults->GetTaxResult); } /** * Indicates the last Document Code ({@link GetTaxResult#getDocId}) the results list. *

* If {@link #getGetTaxResults} is not empty, then this * LastDocId should be passed to the next {@link ReconcileTaxHistoryRequest}. * If {@link #getGetTaxResults} is empty, then this LastDocId can be * passed to {@link ReconcileTaxHistoryRequest} with the request's * {@link ReconcileTaxHistoryRequest#isReconciled} flag * set to true in order to reconcile all documents up to and including the LastDocId. *

* * @see ReconcileTaxHistoryResult * @return string */ public function getLastDocId() { return $this->LastDocId; } // BaseResult innards - work around a bug in SoapClient /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\`3::Jurisdiction.class.phpnuW+AJurisdictionCode=$value;} // string public function getJurisdictionCode(){return $this->JurisdictionCode;} // string public function setCountry($value){$this->Country=$value;} // string public function getCountry(){return $this->Country;} // string public function setExpiryDate($value){$this->ExpiryDate=$value;} // dateTime public function getExpiryDate(){return $this->ExpiryDate;} // dateTime public function setDoesNotExpire($value){$this->DoesNotExpire=$value;} // boolean public function getDoesNotExpire(){return $this->DoesNotExpire;} // boolean public function setPermitNumbers($value){$this->PermitNumbers=$value;} // ArrayOfString public function getPermitNumbers(){return $this->PermitNumbers;} // ArrayOfString } ?> PK+?\$EAvalaraSoapClient.class.phpnuW+Aclient->__getLastRequest(); } public function __getLastResponse() { return $this->client->__getLastResponse(); } public function __getLastRequestHeaders() { return $this->client->__getLastRequestHeaders(); } public function __getLastResponseHeaders() { return $this->client->__getLastResponseHeaders(); } } ?> PK+?\mCertificateUsage.class.phpnuW+APK+?\IC C CancelCode.class.phpnuW+ASaved. */ public static $PostFailed = 'PostFailed'; /** * Specifies the document was deleted within the client's application and * should be removed from the AvaTax records; If the document within AvaTax * is already committed, the document status will be changed to Cancelled * and retained for historical records; If the document was not committed, * (was Saved or Posted) the document will be deleted within AvaTax. */ public static $DocDeleted = 'DocDeleted'; /** * Specifies the document was voided within the client's application and * should be removed from the AvaTax records; If the document within AvaTax * is already committed, the document status will be changed to Cancelled * and retained for historical records; If the document was not committed, * (was Saved or Posted) the document will be deleted within AvaTax. */ public static $DocVoided = 'DocVoided'; public static $AdjustmentCancelled = 'AdjustmentCancelled'; public static function Values() { return array( CancelCode::$Unspecified, CancelCode::$PostFailed, CancelCode::$DocDeleted, CancelCode::$DocVoided, CancelCode::$AdjustmentCancelled ); } // Unfortunate boiler plate due to polymorphism issues on static functions public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); } } ?>PK+?\ CommitTaxRequest.class.phpnuW+A * A document can be indicated solely by the {@link CommitTaxRequest#DocId} if it is known. * Otherwise the request must specify all of {@link CommitTaxRequest#CompanyCode}, * {@link CommitTaxRequest#DocCode}, and * {@link CommitTaxRequest#tDocType} in order to uniquely identify the document. *

* * @see CommitTaxResult * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ class CommitTaxRequest extends TaxRequest { private $NewDocCode; //string /** * As on this version of SDK DocCode can be changed during commit using NewDocCode. * * @return string */ public function getNewDocCode() { return $this->NewDocCode; } /** * As on this version of SDK DocCode can be changed during commit using NewDocCode. * * @param string $value */ public function setNewDocCode($value) { $this->NewDocCode = $value; } } ?>PK+?\AdjustTaxResult.class.phpnuW+A * See {@link GetTaxRequest#getDocCode} on GetTaxRequest for more information about this member. *

* * @return string */ public function getDocCode() {return $this->DocCode; } /** * AdjustmentDescription set while making AdjustTax call. * * @return string */ public function getAdjustmentDescription() { return $this->AdjustmentDescription; } /** * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified. * * @return int */ public function getAdjustmentReason(){ return $this->AdjustmentReason; } /** * Gets the date on the invoice, purchase order, etc. *

* See {@link GetTaxRequest#getDocDate} on GetTaxRequest for more information about this member. *

* * @return date */ public function getDocDate() {return $this->DocDate; } /** * Tax Date is the date used to calculate tax on the Document. *

* See {@link GetTaxRequest#taxDate} on GetTaxRequest for more information about this member. *

* * @return date */ public function getTaxDate() {return $this->TaxDate; } /** * Gets the Document Type. *

* See {@link GetTaxRequest#DocType} on GetTaxRequest for more information about this member. *

* * @return DocumentType */ public function getDocType() {return $this->DocType; } /** * Gets the document's status after the tax calculation. * * @return DocStatus */ public function getDocStatus() {return $this->DocStatus; } /** * True if the document has been reconciled; Only committed documents can be reconciled. *

* For information on committing documents, see the TaxSvc's * {@link TaxSvcSoap#commitTax} method. For information * on reconciling documents, see the {@link TaxSvcSoap#reconcileTaxHistory} method. *

* * @return boolean */ public function getIsReconciled() {return $this->Reconciled; } /** * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return. * * @return boolean */ public function getLocked() {return $this->Locked; } /** * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date). * * @return dateTime */ public function getTimestamp() {return $this->Timestamp; } /** * The sum of all line {@link Line#getAmount} values. * * @param decimal */ public function getTotalAmount() {return $this->TotalAmount; } /** * Gets the sum of all TaxLine {@link TaxLine#getDiscount} amounts; Typically it * will equal the requested Discount, but, but it is possible that no lines were marked as discounted. * * @return decimal */ public function getTotalDiscount() {return $this->TotalDiscount; } /** * Gets the sum of all TaxLine {@link TaxLine#getExemption} amounts. * * @return decimal * @deprecated See {@link TaxDetail#getExemption}. */ public function getTotalExemption() {return $this->TotalExemption; } /** * Gets the amount the tax is based on; This is the total of all {@link Line} Base amounts; * Typically it will be equal to the document * {@link GetTaxResult#getTotalAmount} - {@link GetTaxRequest#getDiscount} - {@link #getTotalExemption}. * * @return decimal * @deprecated See {@link TaxDetail#getTaxable}. */ public function getTotalTaxable() {return $this->TotalTaxable; } /** * Gets the total tax for the document. * * @return decimal */ public function getTotalTax() {return $this->TotalTax; } /** * HashCode to support Reconciliation. * * @return hashCode */ public function getHashCode() {return $this->HashCode; } /** * Current version of the document. * * @return int */ public function getVersion() {return $this->Version; } /** * Gets the Tax broken down by individual {@link TaxLine}. * * @return taxLines */ public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); } /** * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified. * This is for informational purposes.The TotalTax will still be used for reporting * * @return unknown */ public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;} /** * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary. * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail. * * @return ArrayOfTaxDetail */ public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);} public function getTaxLine($lineNo) { if($this->getTaxLines() != null) { foreach($this->getTaxLines() as $taxLine) { if($lineNo == $taxLine->getNo()) { return $taxLine; } } } } /////////////////////////////////////////////PHP bug requires this copy from BaseResult /////////// /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\]eDDInitiateExemptCert.class.phpnuW+AInitiateExemptCertRequest=$value;} // InitiateExemptCertRequest public function getInitiateExemptCertRequest(){return $this->InitiateExemptCertRequest;} // InitiateExemptCertRequest } ?> PK+?\ M(GetExemptionCertificatesResult.class.phpnuW+AExemptionCertificates;} // ArrayOfExemptionCertificate public function getRecordCount(){return $this->RecordCount;} // int } ?> PK+?\IsAuthorizedResult.class.phpnuW+AExample:
*
 *  $port = new AddressServiceSoap();
 *
 *  $result = port->ping("");
 *  $numMessages = sizeof($result->Messages);
 *  print('Ping Result # of messages is '.$numMessages);
 * 
* * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address */ class IsAuthorizedResult //extends BaseResult { private $Operations; private $Expires; /** * Authorized operations for the user. * * @return string */ public function getOperations() { return $this->Operations; } /** * Indicates the subscription expiration date in yyyy-mm-dd format * * @return date */ public function getExpires() { return $this->Expires; } public function setOperations($value) { $this->Operations = $value; return $this; } public function setExpires($value) { $this->Expires = $value; return $this; } //BaseResult innards - workaround for SoapClient bug /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\gCommunicationMode.class.phpnuW+A PK+?\i844 wsdl/Tax.wsdlnuW+A Calculates taxes on a document Retrieves a previously calculated tax document Posts a previously calculated tax Commits a previously posted tax Cancels a previously calculated tax. This is for use as a compensating action when posting on the client fails to complete. Reconciles tax history to ensure the client data matches the AvaTax history. Adjusts taxes on an existing invoice Applies a payment date to an existing invoice Submits a batch of TaxSvc requests to be processed. Gets the status and results of a submitted batch. Cancels an incomplete batch operation. Tests connectivity and version of the service Checks authentication and authorization to one or more operations on the service. PK+?\H5H5wsdl/Address.wsdlnuW+A Validate an Address Tests connectivity and version of the service Checks authentication and authorization to one or more operations on the service. PK+?\)wsdl/.htaccessnuW+A Order allow,deny Deny from all PK+?\Vwsdl/index.htmlnuW+A PK+?\5=uuwsdl/BatchSvc.wsdlnuW+A Fetches one or more Batch Saves a Batch entry Deletes one or more Batches Processes one or more Batches Fetches one or more BatchFiles Saves a Batch File Deletes one or more BatchFiles Tests connectivity and version of the service Checks authentication and authorization to one or more operations on the service. PK+?\v$$wsdl/AvaCertSvc.wsdlnuW+A PK+?\\PiXXRequestType.class.phpnuW+APK+?\{\BBCommitTaxResult.class.phpnuW+ATransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\=ͮEnum.class.phpnuW+APK+?\%mTaxOverride.class.phpnuW+ATaxAmount=0.0; $dateTime=new DateTime(); $dateTime->setDate(1900,01,01); $this->TaxDate=$dateTime->format("Y-m-d"); } public function setTaxOverrideType($value){ $this->TaxOverrideType=$value; } //TaxOverrideType public function setTaxAmount($value){$this->TaxAmount=$value;} //decimal public function setTaxDate($value){$this->TaxDate=$value;} //date public function setReason($value){$this->Reason=$value;} //string public function getTaxOverrideType(){ return $this->TaxOverrideType; } //TaxOverrideType public function getTaxAmount(){return $this->TaxAmount;} //decimal public function getTaxDate(){return $this->TaxDate;} //date public function getReason(){return $this->Reason;} //string } ?>PK+?\ iTextCase.class.phpnuW+APK+?\DIValidateResult.class.phpnuW+A * $port = new AddressServiceSoap(); * * $address = new Address(); * $address->setLine1("900 Winslow Way"); * $address->setLine2("Suite 130"); * $address->setCity("Bainbridge Is"); * $address->setRegion("WA"); * $address->setPostalCode("98110-2450"); * * $result = $port->validate($address,TextCase::$Upper); * $addresses = $result->ValidAddresses; * print("Number of addresses returned is ". sizeoof($addresses)); * * * * @see ValidAddress * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address */ class ValidateResult// extends BaseResult { /** * Array of matching {@link ValidAddress}'s. * @var array */ private $ValidAddresses; /** * Method returning array of matching {@link ValidAddress}'s. * @return array */ public function getValidAddresses() { return EnsureIsArray($this->ValidAddresses->ValidAddress); } /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } //@author:swetal public function isTaxable() { return $this->Taxable; } } ?>PK+?\;"InitiateExemptCertResult.class.phpnuW+ATrackingCode;} // string public function getWizardLaunchUrl(){return $this->WizardLaunchUrl;} // string } ?> PK+?\c\\ServiceMode.class.phpnuW+APK+?\Ql l TaxLine.class.phpnuW+ANo; } /** * Accessor * @return string */ public function getTaxCode() { return $this->TaxCode; } /** * Accessor * @return boolean */ public function getTaxability() { return $this->Taxability; } /** * Accessor * @see BoundaryLevel * @return string */ public function getBoundaryLevel() { return $this->BoundaryLevel; } /** * Accessor * @return decimal */ public function getExemption() { return $this->Exemption; } /** * Accessor * @return decimal */ public function getDiscount() { return $this->Discount; } /** * Accessor * @return decimal */ public function getTaxable() { return $this->Taxable; } /** * Accessor * @return decimal */ public function getRate() { return $this->Rate; } /** * Accessor * @return string */ public function getTax() { return $this->Tax; } /** * Accessor * @return decimal */ public function getTaxDetails() { return EnsureIsArray($this->TaxDetails->TaxDetail); } /** * Accessor * @return int */ public function getExemptCertId() { return $this->ExemptCertId; } /** * Accessor * @return decimal */ public function getTaxCalculated(){ return $this->TaxCalculated; } //decimalt public function getReportingDate(){ return $this->ReportingDate;} //date public function getAccountingMethod(){ return $this->AccountingMethod;}//String /** * True if tax is included in the line. * @param boolean */ public function setTaxIncluded($value) { $this->TaxIncluded=$value; } /** * True if tax is included in the line. * @return boolean */ public function getTaxIncluded() { return $this->TaxIncluded; } } ?>PK+?\tѝReviewStatus.class.phpnuW+APK+?\l00#InitiateExemptCertRequest.class.phpnuW+ACommunicationMode = CommunicationMode::$Email; $this->Type=RequestType::$STANDARD; } public function setCustomer($value){$this->Customer=$value;} // Customer public function getCustomer(){return $this->Customer;} // Customer public function setLocationCode($value){$this->LocationCode=$value;} // string public function getLocationCode(){return $this->LocationCode;} // string public function setCustomMessage($value){$this->CustomMessage=$value;} // string public function getCustomMessage(){return $this->CustomMessage;} // string public function setCommunicationMode($value){$this->CommunicationMode=$value;} // CommunicationMode public function getCommunicationMode(){return $this->CommunicationMode;} // CommunicationMode public function setType($value){$this->Type=$value;} // RequestType public function getType(){return $this->Type;} // RequestType } ?> PK+?\BatchSvc/AuditMessage.class.phpnuW+AMessage=$value;} // string public function getMessage(){return $this->Message;} // string } ?> PK+?\)BatchSvc/.htaccessnuW+A Order allow,deny Deny from all PK+?\HCBatchSvc/AvaTaxBatchSvc.phpnuW+AasXML()); $indent_level = 0; $new_xml_lines = array(); foreach ($xml_lines as $xml_line) { if (preg_match('#(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>.*]+>)|(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?s*/s*>)#i', $xml_line)) { $new_line = str_pad('', $indent_level*4) . $xml_line; $new_xml_lines[] = $new_line; } elseif (preg_match('#<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>#i', $xml_line)) { $new_line = str_pad('', $indent_level*4) . $xml_line; $indent_level++; $new_xml_lines[] = $new_line; } elseif (preg_match('#/]+>#i', $xml_line)) { $indent_level--; if (trim($new_xml_lines[sizeof($new_xml_lines)-1]) == trim(str_replace("/", "", $xml_line))) { $new_xml_lines[sizeof($new_xml_lines)-1] .= $xml_line; } else { $new_line = str_pad('', $indent_level*4) . $xml_line; $new_xml_lines[] = $new_line; } } else { $new_line = str_pad('', $indent_level*4) . $xml_line; $new_xml_lines[] = $new_line; } } $xml = join("n", $new_xml_lines); return ($html_output) ? '
' . htmlentities($xml) . '
' : $xml; } ?>PK+?\WE  BatchSvc/BatchDelete.class.phpnuW+ADeleteRequest=$value;} // DeleteRequest public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest } ?> PK+?\#wBatchSvc/BatchSave.class.phpnuW+ABatch=$value;} // Batch public function getBatch(){return $this->Batch;} // Batch } ?> PK+?\m::BatchSvc/BatchSvc.class.phpnuW+A 'BatchFetch', 'FetchRequest' => 'FetchRequest', 'BatchFetchResponse' => 'BatchFetchResponse', 'BatchFetchResult' => 'BatchFetchResult', 'BaseResult' => 'BaseResult', 'SeverityLevel' => 'SeverityLevel', 'Message' => 'Message', 'Batch' => 'Batch', 'BatchFile' => 'BatchFile', 'Profile' => 'Profile', 'BatchSave' => 'BatchSave', 'BatchSaveResponse' => 'BatchSaveResponse', 'BatchSaveResult' => 'BatchSaveResult', 'AuditMessage' => 'AuditMessage', 'BatchDelete' => 'BatchDelete', 'DeleteRequest' => 'DeleteRequest', 'FilterRequest' => 'FilterRequest', 'BatchDeleteResponse' => 'BatchDeleteResponse', 'DeleteResult' => 'DeleteResult', 'FilterResult' => 'FilterResult', 'BatchProcess' => 'BatchProcess', 'BatchProcessRequest' => 'BatchProcessRequest', 'BatchProcessResponse' => 'BatchProcessResponse', 'BatchProcessResult' => 'BatchProcessResult', 'BatchFileFetch' => 'BatchFileFetch', 'BatchFileFetchResponse' => 'BatchFileFetchResponse', 'BatchFileFetchResult' => 'BatchFileFetchResult', 'BatchFileSave' => 'BatchFileSave', 'BatchFileSaveResponse' => 'BatchFileSaveResponse', 'BatchFileSaveResult' => 'BatchFileSaveResult', 'BatchFileDelete' => 'BatchFileDelete', 'BatchFileDeleteResponse' => 'BatchFileDeleteResponse', 'Ping' => 'Ping', 'PingResponse' => 'PingResponse', 'PingResult' => 'PingResult', 'IsAuthorized' => 'IsAuthorized', 'IsAuthorizedResponse' => 'IsAuthorizedResponse', 'IsAuthorizedResult' => 'IsAuthorizedResult', ); public function __construct($configurationName = 'Default') { $config = new ATConfig($configurationName); $this->client = new DynamicSoapClient ( $config->batchWSDL, array ( 'location' => $config->url.$config->batchService, 'trace' => $config->trace, 'classmap' => BatchSvc::$classmap ), $config ); } /** * Fetches one or more Batch * * @param BatchFetch $parameters * @return BatchFetchResponse */ public function BatchFetch(&$fetchRequest) { return $this->client->BatchFetch(array('FetchRequest' => $fetchRequest))->getBatchFetchResult(); } /** * Saves a Batch entry * * @param BatchSave $parameters * @return BatchSaveResponse */ public function BatchSave(&$batch) { return $this->client->BatchSave(array('Batch' => $batch))->getBatchSaveResult(); } /** * Deletes one or more Batches * * @param BatchDelete $parameters * @return BatchDeleteResponse */ public function BatchDelete(&$deleteRequest) { return $this->client->BatchDelete(array('DeleteRequest' => $deleteRequest))->getBatchDeleteResult(); } /** * Processes one or more Batches * * @param BatchProcess $parameters * @return BatchProcessResponse */ public function BatchProcess(&$batchProcessRequest) { return $this->client->BatchProcess(array('BatchProcessRequest' => $batchProcessRequest))->getBatchProcessResult(); } /** * Fetches one or more BatchFiles * * @param BatchFileFetch $parameters * @return BatchFileFetchResponse */ public function BatchFileFetch(&$fetchRequest) { return $this->client->BatchFileFetch(array('FetchRequest' => $fetchRequest))->getBatchFileFetchResult(); } /** * Saves a Batch File * * @param BatchFileSave $parameters * @return BatchFileSaveResponse */ public function BatchFileSave(&$batchFile) { return $this->client->BatchFileSave(array('BatchFile' => $batchFile))->getBatchFileSaveResult(); } /** * Deletes one or more BatchFiles * * @param BatchFileDelete $parameters * @return BatchFileDeleteResponse */ public function BatchFileDelete(&$deleteRequest) { return $this->client->BatchFileDelete(array('DeleteRequest' => $deleteRequest))->getBatchFileDeleteResult(); } /** * Tests connectivity and version of the service * * @param Ping $parameters * @return PingResponse */ public function Ping($message = '') { return $this->client->Ping(array('Message' => $message))->getPingResult(); } /** * Checks authentication and authorization to one or more operations on the service. * * @param IsAuthorized $parameters * @return IsAuthorizedResponse */ public function IsAuthorized($operations) { return $this->client->IsAuthorized(array('Operations' => $operations))->getIsAuthorizedResult(); } } ?> PK+?\<֩ BatchSvc/SeverityLevel.class.phpnuW+A PK+?\EE'BatchSvc/IsAuthorizedResponse.class.phpnuW+AIsAuthorizedResult=$value;} // IsAuthorizedResult public function getIsAuthorizedResult(){return $this->IsAuthorizedResult;} // IsAuthorizedResult } ?> PK+?\ŠY Y BatchSvc/Batch.class.phpnuW+AAccountId=0; $this->BatchId=0; $this->CreatedUserId=0; $this->ModifiedUserId=0; $this->RecordCount=0; $this->CurrentRecord=0; $this->CreatedDate=getCurrentDate(); $this->CompletedDate=getCurrentDate(); $this->ModifiedDate=getCurrentDate(); } public function setAccountId($value){$this->AccountId=$value;} // int public function getAccountId(){return $this->AccountId;} // int public function setBatchId($value){$this->BatchId=$value;} // int public function getBatchId(){return $this->BatchId;} // int public function setBatchStatusId($value){$this->BatchStatusId=$value;} // string public function getBatchStatusId(){return $this->BatchStatusId;} // string public function setBatchTypeId($value){$this->BatchTypeId=$value;} // string public function getBatchTypeId(){return $this->BatchTypeId;} // string public function setCompanyId($value){$this->CompanyId=$value;} // int public function getCompanyId(){return $this->CompanyId;} // int public function setCreatedDate($value){$this->CreatedDate=$value;} // dateTime public function getCreatedDate(){return $this->CreatedDate;} // dateTime public function setCreatedUserId($value){$this->CreatedUserId=$value;} // int public function getCreatedUserId(){return $this->CreatedUserId;} // int public function setCompletedDate($value){$this->CompletedDate=$value;} // dateTime public function getCompletedDate(){return $this->CompletedDate;} // dateTime public function setFiles($value){$this->Files=$value;} // ArrayOfBatchFile public function getFiles(){return $this->Files;} // ArrayOfBatchFile public function setModifiedDate($value){$this->ModifiedDate=$value;} // dateTime public function getModifiedDate(){return $this->ModifiedDate;} // dateTime public function setModifiedUserId($value){$this->ModifiedUserId=$value;} // int public function getModifiedUserId(){return $this->ModifiedUserId;} // int public function setName($value){$this->Name=$value;} // string public function getName(){return $this->Name;} // string public function setOptions($value){$this->Options=$value;} // string public function getOptions(){return $this->Options;} // string public function setRecordCount($value){$this->RecordCount=$value;} // int public function getRecordCount(){return $this->RecordCount;} // int public function setCurrentRecord($value){$this->CurrentRecord=$value;} // int public function getCurrentRecord(){return $this->CurrentRecord;} // int } ?> PK+?\NN%BatchSvc/BatchProcessResult.class.phpnuW+A PK+?\GBatchSvc/BatchFile.class.phpnuW+ABatchFileId=0; $this->BatchId=0; $this->ErrorCount=0; } public function setBatchFileId($value){$this->BatchFileId=$value;} // int public function getBatchFileId(){return $this->BatchFileId;} // int public function setBatchId($value){$this->BatchId=$value;} // int public function getBatchId(){return $this->BatchId;} // int public function setContent($value){$this->Content=$value;} // base64Binary public function getContent(){return $this->Content;} // base64Binary public function setContentType($value){$this->ContentType=$value;} // string public function getContentType(){return $this->ContentType;} // string public function setExt($value){$this->Ext=$value;} // string public function getExt(){return $this->Ext;} // string public function setFilePath($value){$this->FilePath=$value;} // string public function getFilePath(){return $this->FilePath;} // string public function setName($value){$this->Name=$value;} // string public function getName(){return $this->Name;} // string public function setSize($value){$this->Size=$value;} // int public function getSize(){return $this->Size;} // int public function setErrorCount($value){$this->ErrorCount=$value;} // int public function getErrorCount(){return $this->ErrorCount;} // int } ?> PK+?\]  !BatchSvc/BatchFileFetch.class.phpnuW+AFetchRequest=$value;} // FetchRequest public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest } ?> PK+?\.g'BatchSvc/BatchFileFetchResult.class.phpnuW+ABatchFiles=$value;} // ArrayOfBatchFile public function getBatchFiles(){return $this->BatchFiles;} // ArrayOfBatchFile public function setRecordCount($value){$this->RecordCount=$value;} // int public function getRecordCount(){return $this->RecordCount;} // int } ?> PK+?\@z&BatchSvc/BatchFileSaveResult.class.phpnuW+ABatchFileId=$value;} // int public function getBatchFileId(){return $this->BatchFileId;} // int } ?> PK+?\1< BatchSvc/BatchFileSave.class.phpnuW+ABatchFile=$value;} // BatchFile public function getBatchFile(){return $this->BatchFile;} // BatchFile } ?> PK+?\X&BatchSvc/BatchProcessRequest.class.phpnuW+AMaxCount=0; } public function setFilters($value){$this->Filters=$value;} // string public function getFilters(){return $this->Filters;} // string public function setMaxCount($value){$this->MaxCount=$value;} // int public function getMaxCount(){return $this->MaxCount;} // int } ?> PK+?\r!BatchSvc/Message.class.phpnuW+ASummary=$value;} // string public function getSummary(){return $this->Summary;} // string public function setDetails($value){$this->Details=$value;} // string public function getDetails(){return $this->Details;} // string public function setHelpLink($value){$this->HelpLink=$value;} // string public function getHelpLink(){return $this->HelpLink;} // string public function setRefersTo($value){$this->RefersTo=$value;} // string public function getRefersTo(){return $this->RefersTo;} // string public function setSeverity($value){$this->Severity=$value;} // SeverityLevel public function getSeverity(){return $this->Severity;} // SeverityLevel public function setSource($value){$this->Source=$value;} // string public function getSource(){return $this->Source;} // string public function setName($value){$this->Name=$value;} // string public function getName(){return $this->Name;} // string } ?> PK+?\/BatchSvc/Ping.class.phpnuW+AMessage=$value;} // string public function getMessage(){return $this->Message;} // string } ?> PK+?\&;HYY)BatchSvc/BatchFileFetchResponse.class.phpnuW+ABatchFileFetchResult=$value;} // BatchFileFetchResult public function getBatchFileFetchResult(){return $this->BatchFileFetchResult;} // BatchFileFetchResult } ?> PK+?\OEE'BatchSvc/BatchProcessResponse.class.phpnuW+ABatchProcessResult=$value;} // BatchProcessResult public function getBatchProcessResult(){return $this->BatchProcessResult;} // BatchProcessResult } ?> PK+?\W*BatchSvc/PingResponse.class.phpnuW+APingResult=$value;} // PingResult public function getPingResult(){return $this->PingResult;} // PingResult } ?> PK+?\pUOO(BatchSvc/BatchFileSaveResponse.class.phpnuW+ABatchFileSaveResult=$value;} // BatchFileSaveResult public function getBatchFileSaveResult(){return $this->BatchFileSaveResult;} // BatchFileSaveResult } ?> PK+?\h BatchSvc/FilterRequest.class.phpnuW+AMaxCount=0; } public function setFilters($value){$this->Filters=$value;} // string public function getFilters(){return $this->Filters;} // string public function setMaxCount($value){$this->MaxCount=$value;} // int public function getMaxCount(){return $this->MaxCount;} // int } ?> PK+?\Lu''$BatchSvc/BatchSaveResponse.class.phpnuW+ABatchSaveResult=$value;} // BatchSaveResult public function getBatchSaveResult(){return $this->BatchSaveResult;} // BatchSaveResult } ?> PK+?\;-BBBatchSvc/DeleteResult.class.phpnuW+A PK+?\"BatchSvc/BatchFileDelete.class.phpnuW+ADeleteRequest=$value;} // DeleteRequest public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest } ?> PK+?\]Q"BatchSvc/BatchSaveResult.class.phpnuW+ABatchId=$value;} // int public function getBatchId(){return $this->BatchId;} // int public function setEstimatedCompletion($value){$this->EstimatedCompletion=$value;} // dateTime public function getEstimatedCompletion(){return $this->EstimatedCompletion;} // dateTime } ?> PK+?\ɣ,((BatchSvc/PingResult.class.phpnuW+AVersion=$value;} // string public function getVersion(){return $this->Version;} // string //public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ //public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ //public function getMessages() { return EnsureIsArray($this->Messages->Message);} } ?> PK+?\BatchSvc/BatchFetch.class.phpnuW+AFetchRequest=$value;} // FetchRequest public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest } ?> PK+?\f]11%BatchSvc/BatchFetchResponse.class.phpnuW+ABatchFetchResult=$value;} // BatchFetchResult public function getBatchFetchResult(){return $this->BatchFetchResult;} // BatchFetchResult } ?> PK+?\{BatchSvc/IsAuthorized.class.phpnuW+AOperations=$value;} // string public function getOperations(){return $this->Operations;} // string } ?> PK+?\ Ok#BatchSvc/BatchFetchResult.class.phpnuW+ABatches=$value;} // ArrayOfBatch public function getBatches(){return $this->Batches;} // ArrayOfBatch public function setRecordCount($value){$this->RecordCount=$value;} // int public function getRecordCount(){return $this->RecordCount;} // int } ?> PK+?\4fHH*BatchSvc/BatchFileDeleteResponse.class.phpnuW+ABatchFileDeleteResult=$value;} // DeleteResult public function getBatchFileDeleteResult(){return $this->BatchFileDeleteResult;} // DeleteResult } ?> PK+?\pTTBatchSvc/FetchRequest.class.phpnuW+AMaxCount=0; $this->PageIndex=0; $this->PageSize=0; $this->RecordCount=0; } public function setFields($value){$this->Fields=$value;} // string public function getFields(){return $this->Fields;} // string public function setFilters($value){$this->Filters=$value;} // string public function getFilters(){return $this->Filters;} // string public function setSort($value){$this->Sort=$value;} // string public function getSort(){return $this->Sort;} // string public function setMaxCount($value){$this->MaxCount=$value;} // int public function getMaxCount(){return $this->MaxCount;} // int public function setPageIndex($value){$this->PageIndex=$value;} // int public function getPageIndex(){return $this->PageIndex;} // int public function setPageSize($value){$this->PageSize=$value;} // int public function getPageSize(){return $this->PageSize;} // int public function setRecordCount($value){$this->RecordCount=$value;} // int public function getRecordCount(){return $this->RecordCount;} // int } ?> PK+?\-*BatchSvc/FilterResult.class.phpnuW+ACount=$value;} // int public function getCount(){return $this->Count;} // int } ?> PK+?\ח==BatchSvc/BatchProcess.class.phpnuW+ABatchProcessRequest=$value;} // BatchProcessRequest public function getBatchProcessRequest(){return $this->BatchProcessRequest;} // BatchProcessRequest } ?> PK+?\Z%BatchSvc/IsAuthorizedResult.class.phpnuW+AOperations=$value;} // string public function getOperations(){return $this->Operations;} // string public function setExpires($value){$this->Expires=$value;} // dateTime public function getExpires(){return $this->Expires;} // dateTime } ?> PK+?\\ BatchSvc/DeleteRequest.class.phpnuW+AMaxCount=0; } public function setFilters($value){$this->Filters=$value;} // string public function getFilters(){return $this->Filters;} // string public function setMaxCount($value){$this->MaxCount=$value;} // int public function getMaxCount(){return $this->MaxCount;} // int } ?> PK+?\ ޽BatchSvc/Profile.class.phpnuW+AName=$value;} // string public function getName(){return $this->Name;} // string public function setClient($value){$this->Client=$value;} // string public function getClient(){return $this->Client;} // string public function setAdapter($value){$this->Adapter=$value;} // string public function getAdapter(){return $this->Adapter;} // string public function setMachine($value){$this->Machine=$value;} // string public function getMachine(){return $this->Machine;} // string } ?> PK+?\VBatchSvc/index.htmlnuW+A PK+?\#BatchSvc/BaseResult.class.phpnuW+ATransactionId=$value;} // string public function getTransactionId(){return $this->TransactionId;} // string public function setResultCode($value){$this->ResultCode=$value;} // SeverityLevel public function getResultCode(){return $this->ResultCode;} // SeverityLevel public function setMessages($value){$this->Messages=$value;} // ArrayOfMessage public function getMessages(){return $this->Messages;} // ArrayOfMessage } ?> PK+?\wj_**&BatchSvc/BatchDeleteResponse.class.phpnuW+ABatchDeleteResult=$value;} // DeleteResult public function getBatchDeleteResult(){return $this->BatchDeleteResult;} // DeleteResult } ?> PK+?\(u CCCancelTaxResult.class.phpnuW+ATransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\3\AddCustomerResult.class.phpnuW+A PK+?\| #ReconcileTaxHistoryResult.class.phpnuW+A * If LastDocId was not specified by the {@link ReconcileTaxHistoryRequest}, * then this is the first set of records that need reconciliation. If LastDocId was specified, * the collection represents the next set of records after LastDocId. If the collection is * empty, then all records have been reconciled and the result's LastDocId will be set to the * last record of the last result set. *
* The GetTaxResults are returned in an Axis wrapper {@link ArrayOfGetTaxResult}, which has a * raw GetTaxResult[] array accessible via its {@link ArrayOfGetTaxResult#getGetTaxResult} method. *
     * Example:
     * $result = $taxSvc->reconcileTaxHistory($request);
     * foreach($result->getTaxResults() as $taxResult)
     * {
     *      ...
     * }
     *
     * 
* @see GetTaxResult * @return array */ public function getGetTaxResults() { if(isset($this->GetTaxResults->GetTaxResult)) { return EnsureIsArray($this->GetTaxResults->GetTaxResult); } else { return null; } } public function setRecordCount($value){$this->RecordCount=$value;} // int public function getRecordCount(){return $this->RecordCount;} // int public function setLastDocCode($value) { $this->LastDocCode=$value; } public function getLastDocCode() { return $this->LastDocCode; } // BaseResult innards - work around a bug in SoapClient /** * @var string */ private $TransactionId; /** * @var string must be one of the values defined in {@link SeverityLevel}. */ private $ResultCode = 'Success'; /** * @var array of Message. */ private $Messages = array(); /** * Accessor * @return string */ public function getTransactionId() { return $this->TransactionId; } /** * Accessor * @return string */ public function getResultCode() { return $this->ResultCode; } /** * Accessor * @return array */ public function getMessages() { return EnsureIsArray($this->Messages->Message); } } ?>PK+?\j44TaxServiceSoap.class.phpnuW+A * Example: *
 *  $taxService = new TaxServiceSoap();
 *  $result = $taxService->ping();
 * 
* * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ if(!class_exists('AvalaraSoapClient')) require (VMAVALARA_CLASS_PATH.DS.'AvalaraSoapClient.class.php'); class TaxServiceSoap extends AvalaraSoapClient { static $servicePath = '/Tax/TaxSvc.asmx'; static protected $classmap = array( 'BaseAddress' => 'Address', 'ValidAddress' => 'ValidAddress', 'Message' => 'Message', 'ValidateRequest' => 'ValidateRequest', 'IsAuthorizedResult' => 'IsAuthorizedResult', 'PingResult' => 'PingResult', 'ValidateResult' => 'ValidateResult', 'Line'=>'Line', 'AdjustTaxRequest'=>'AdjustTaxRequest', 'AdjustTaxResult'=>'AdjustTaxResult', 'CancelTaxRequest'=>'CancelTaxRequest', 'CancelTaxResult'=>'CancelTaxResult', 'CommitTaxRequest'=>'CommitTaxRequest', 'CommitTaxResult'=>'CommitTaxResult', 'GetTaxRequest'=>'GetTaxRequest', 'GetTaxResult'=>'GetTaxResult', 'GetTaxHistoryRequest'=>'GetTaxHistoryRequest', 'GetTaxHistoryResult'=>'GetTaxHistoryResult', 'PostTaxRequest'=>'PostTaxRequest', 'PostTaxResult'=>'PostTaxResult', 'ReconcileTaxHistoryRequest'=>'ReconcileTaxHistoryRequest', 'ReconcileTaxHistoryResult'=>'ReconcileTaxHistoryResult', 'TaxLine'=>'TaxLine', 'TaxDetail' => 'TaxDetail', 'ApplyPaymentRequest'=>'ApplyPaymentRequest', 'ApplyPaymentResult'=>'ApplyPaymentResult', 'BaseResult'=>'BaseResult', 'TaxOverride'=>'TaxOverride' ); public function __construct($configurationName = 'Default') { $config = new ATConfig($configurationName); if(!class_exists('DynamicSoapClient')) require (VMAVALARA_CLASS_PATH.DS.'DynamicSoapClient.class.php'); $this->client = new DynamicSoapClient ( $config->taxWSDL, array ( 'location' => $config->url.$config->taxService, 'trace' => $config->trace, 'classmap' => TaxServiceSoap::$classmap ), $config ); } /** * Calculates taxes on a document such as a sales order, sales invoice, purchase order, purchase invoice, or credit memo. *
The tax data is saved Sales Invoice and Purchase Invoice document types {@link GetTaxRequest#getDocType}. * * @param getTaxRequest -- Tax calculation request * * @return GetTaxResult * @throws SoapFault */ public function getTax(&$getTaxRequest) { $getTaxRequest->prepare(); return $this->client->GetTax(array('GetTaxRequest' => $getTaxRequest))->GetTaxResult; } /** * Retrieves a previously calculated tax document. *

* This is only available for saved tax documents (Sales Invoices, Purchase Invoices). *

*

* A document can be indicated solely by the {@link PostTaxRequest#getDocId} if it is known. * Otherwise the request must specify all of {@link PostTaxRequest#getCompanyCode}, see {@link PostTaxRequest#getDocCode} * and {@link PostTaxRequest#getDocType} in order to uniquely identify the document. *

* * @param getTaxHistoryRequest a {@link GetTaxHistoryRequest} object indicating the document for which history should be retrieved. * @return a {@link GetTaxHistoryResult} object * @throws SoapFault */ /*public com.avalara.avatax.services.tax.GetTaxHistoryResult getTaxHistory(com.avalara.avatax.services.tax.GetTaxHistoryRequest getTaxHistoryRequest) throws SoapFault; */ public function getTaxHistory(&$getTaxHistoryRequest) { $result = $this->client->GetTaxHistory(array('GetTaxHistoryRequest'=>$getTaxHistoryRequest))->GetTaxHistoryResult; $result->getGetTaxRequest()->postFetch(); return $result; } /** * Posts a previously calculated tax *

* This is only available for saved tax documents (Sales Invoices, Purchase Invoices). *

*

* A document can be indicated solely by the {@link PostTaxRequest#getDocId} if it is known. * Otherwise the request must specify all of {@link PostTaxRequest#getCompanyCode}, {@link PostTaxRequest#getDocCode}, and * {@link PostTaxRequest#getDocType} in order to uniquely identify the document. *

* * @param postTaxRequest a {@link PostTaxRequest} object indicating the document that should be posted. * @return a {@link PostTaxResult} object * @throws SoapFault */ /*public com.avalara.avatax.services.tax.PostTaxResult postTax(com.avalara.avatax.services.tax.PostTaxRequest postTaxRequest) throws SoapFault; */ public function postTax(&$postTaxRequest) { return $this->client->PostTax(array('PostTaxRequest'=>$postTaxRequest))->PostTaxResult; } /** * Commits a previously posted tax. *

* This is only available for posted tax documents (Sales Invoices, Purchase Invoices). Committed documents cannot * be changed or deleted. *

*

* A document can be indicated solely by the {@link CommitTaxRequest#getDocId} if it is known. Otherwise the * request must specify all of {@link CommitTaxRequest#getCompanyCode}, {@link CommitTaxRequest#getDocCode}, and * {@link CommitTaxRequest#getDocType} in order to uniquely identify the document. *

* * @param commitTaxRequest a {@link CommitTaxRequest} object indicating the document that should be committed. * @return a {@link CommitTaxResult} object * @throws SoapFault */ /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault; */ public function commitTax(&$commitTaxRequest) { return $this->client->CommitTax(array('CommitTaxRequest'=>$commitTaxRequest))->CommitTaxResult; } /** * Cancels a previously calculated tax; This is for use as a * compensating action when posting on the client fails to complete. *

* This is only available for saved tax document types (Sales Invoices, Purchase Invoices). A document that is saved * but not posted will be deleted if canceled. A document that has been posted will revert to a saved state if canceled * (in this case CancelTax should be called with a {@link CancelTaxRequest#getCancelCode} of * PostFailed). A document that has been committed cannot be reverted to a posted state or deleted. In the case * that a document on the client side no longer exists, a committed document can be virtually removed by calling * CancelTax with a CancelCode of DocDeleted. The record will be retained in history but removed * from all reports. *

*

* A document can be indicated solely by the {@link CancelTaxRequest#getDocId} if it is known. Otherwise the request * must specify all of {@link CancelTaxRequest#getCompanyCode}, {@link CancelTaxRequest#getDocCode}, and * {@link CancelTaxRequest#getDocType} in order to uniquely identify the document. * * @param cancelTaxRequest a {@link CancelTaxRequest} object indicating the document that should be canceled. * @return a {@link CancelTaxResult} object * @throws SoapFault */ /* public com.avalara.avatax.services.tax.CancelTaxResult cancelTax(com.avalara.avatax.services.tax.CancelTaxRequest cancelTaxRequest) throws SoapFault; */ public function cancelTax(&$cancelTaxRequest) { return $this->client->CancelTax(array('CancelTaxRequest'=>$cancelTaxRequest))->CancelTaxResult; } /** * Reconciles tax history to ensure the client data matches the * AvaTax history. *

The Reconcile operation allows reconciliation of the AvaTax history with the client accounting system. * It must be used periodically according to your service contract. *

*

* Because there may be a large number of documents to reconcile, it is designed to be called repetitively * until all documents have been reconciled. It should be called until no more documents are returned. * Each subsequent call should pass the previous results {@link ReconcileTaxHistoryRequest#getLastDocId}. *

*

* When all results have been reconciled, Reconcile should be called once more with * {@link ReconcileTaxHistoryRequest#getLastDocId} * equal to the last document code processed and {@link ReconcileTaxHistoryRequest#isReconciled} set to true to indicate * that all items have been reconciled. If desired, this may be done incrementally with each result set. Just send * Reconciled as true when requesting the next result set and the prior results will be marked as reconciled. *

*

* The {@link #postTax}, {@link #commitTax}, and {@link #cancelTax} operations can be used to correct any differences. * {@link #getTax} should be called if any committed documents are out of balance * ({@link GetTaxResult#getTotalAmount} or {@link GetTaxResult#getTotalTax} * don't match the accounting system records). This is to make sure the correct tax is reported. *

* * @param reconcileTaxHistoryRequest a Reconciliation request * @return A collection of documents that have been posted or committed since the last reconciliation. * @throws SoapFault */ /*public com.avalara.avatax.services.tax.ReconcileTaxHistoryResult reconcileTaxHistory(com.avalara.avatax.services.tax.ReconcileTaxHistoryRequest reconcileTaxHistoryRequest) throws SoapFault; */ public function reconcileTaxHistory(&$reconcileTaxHistoryRequest) { return $this->client->ReconcileTaxHistory(array('ReconcileTaxHistoryRequest'=>$reconcileTaxHistoryRequest))->ReconcileTaxHistoryResult; } /** * Adjusts a previously calculated tax. *

* This is only available for unlocked tax documents (Sales Invoices, Purchase Invoices). *

*

*

* * @param adjustTaxRequest a {@link AdjustTaxRequest} object indicating the document that should be edited. * @return a {@link AdjustTaxResult} object * @throws SoapFault */ /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault; */ public function adjustTax(&$adjustTaxRequest) { $adjustTaxRequest->getGetTaxRequest()->prepare(); return $this->client->AdjustTax(array('AdjustTaxRequest'=>$adjustTaxRequest))->AdjustTaxResult; } /** * Checks authentication of and authorization to one or more * operations on the service. * * This operation allows pre-authorization checking of any * or all operations. It will return a comma delimited set of * operation names which will be all or a subset of the requested * operation names. For security, it will never return operation * names other than those requested (no phishing allowed). * * Example:
* isAuthorized("GetTax,PostTax") * * @param string $operations a comma-delimited list of operation names * * @return IsAuthorizedResult * @throws SoapFault */ public function isAuthorized($operations) { return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult; } /** * Verifies connectivity to the web service and returns version * information about the service. * * NOTE:This replaces TestConnection and is available on * every service. * * @param string $message for future use * @return PingResult * @throws SoapFault */ public function ping($message = '') { return $this->client->Ping(array('Message' => $message))->PingResult; } /** * This method is used to apply a payment to a document for cash basis accounting. Applies a payment date to an existing invoice * It sets the document PaymentDate and changes the reporting date from the DocDate default. It may be called before or after a document is committed. It should not be used for accrual basis accounting * * @param ApplyPaymentRequest $applyPaymentRequest * @return ApplyPaymentResult */ public function applyPayment(&$applyPaymentRequest) { return $this->client->ApplyPayment(array('ApplyPaymentRequest' => $applyPaymentRequest))->ApplyPaymentResult; } } ?> PK+?\9HmmATObject.class.phpnuW+A_ivars[$n])) { return $this->_ivars[$n]; } else { return null; } } public function __set($n,$v) { if($v == null) { unset($this->_ivars[$n]); } else { $this->_ivars[$n] = $v; } } public function __isset($n) { return isset($ivars[$n]); } public function __unset($n) { unset($this->_ivars[$n]); } public function __call($n,$args) { if(sizeof($args) == 1) { $this->__set($n,$args[0]); return null; } else if(sizeof($args) == 0) { return $this->__get($n); } } public function ivars() { return $this->_ivars; } } ?>PK+?\l}=2=2ValidAddress.class.phpnuW+A * Example: * $address = new Address(); * $address->setLine1("900 Winslow Way"); * $address->setLine2("Suite 130"); * $address->setCity("Bainbridge Is"); * $address->setRegion("WA"); * $address->setPostalCode("98110-2450"); * * $result = svc->validate($address,TextCase::$Upper); * * if ($result->getResultCode() == SeverityLevel::$Success) * { * $addresses = result->validAddresses(); * if (sizeof($addresses) > 0) * { * $validAddress = $addresses[0]; * print($validAddress->getLine1()); // "900 WINSLOW WAY E STE 130", * print($validAddress->getLine4()); // "BAINBRIDGE IS WA 98110-2450" * print($validAddress->getFipsCode()); // "5303500000" * print($validAddress->getCounty()); // "KITSAP" * } * } * * * @see Address * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address */ class ValidAddress //extends Address - or it should - SoapClient has issues mapping attributes in superclasses { /**#@+ * @access private * @var string */ private $AddressCode; private $Line1; private $Line2; private $Line3; private $City; private $Region; private $PostalCode; private $Country = 'USA'; private $Line4; private $County; private $FipsCode; private $CarrierRoute; private $PostNet; private $AddressType; private $Latitude; private $Longitude; /**#@-*/ /** * @access private * @var integer */ private $TaxRegionId = 0; /**#@+ * Accessor * @access public * @return string */ public function getAddressCode() { return $this->AddressCode; } public function getLine1() { return $this->Line1; } public function getLine2() { return $this->Line2; } public function getLine3() { return $this->Line3; } public function getCity() { return $this->City; } public function getRegion() { return $this->Region; } public function getPostalCode() { return $this->PostalCode; } public function getCountry() { return $this->Country; } /**#@-*/ /** * Accessor * @access public * @return integer */ public function getTaxRegionId() { return $this->TaxRegionId; } /** * Compare Addresses * @access public * @param Address * @return boolean */ public function equals(&$other) { if(!is_object($other)){ return FALSE; } return $this === $other || ( strcmp($this->AddressCode , $other->getAddressCode()) == 0 && strcmp($this->Line1 , $other->Line1) == 0 && strcmp($this->Line2 , $other->Line2) == 0 && strcmp($this->Line3 , $other->Line3) == 0 && strcmp($this->City , $other->City) == 0 && strcmp($this->Region , $other->Region) == 0 && strcmp($this->PostalCode , $other->PostalCode) == 0 && strcmp($this->Country , $other->Country) == 0 && $this->TaxRegionId === $other->TaxRegionId ); } /** * Address line 4. * * @return line4 - Address line 4 */ public function getLine4() { return $this->Line4; } /** * County Name. * * @return county - County Name */ public function getCounty() { return $this->County; } /** * Federal Information Processing Standards Code (USA). *

This is a unique code representing each geographic combination of state, county, and city. * The code is made up of the Federal Information Processing Code (FIPS) that uniquely identifies each state, county, and city in the U.S. * See Federal Information Processing Standards (FIPS) Codes for more details. * * * * * * * * * * * * * * * *
DigitsDescription
1-2State code
3-5County code
6-10City code
* * @return fipsCode */ public function getFipsCode() { return $this->FipsCode; } /** * The carrier route associated with the input address (USA). *

The CarrierRoute Property is a 4 character string set * after a successful return from the VerifyAddress Method. *

The first character of this property is always alphabetic, * and the last three characters are numeric. For example, * "R001" or "C027" would be typical carrier routes. The * alphabetic letter indicates the type of delivery associated * with this address. * * * * * * * * * * * * * * * * * * * * * * * * * * *
TermDescription
BPO Box
CCity Delivery
GGeneral Delivery
HHighway Contract
RRural Route
* * @return carrierRoute */ public function getCarrierRoute() { return $this->CarrierRoute; } /** * A 12-digit POSTNet barcode (USA). * * * * * * * * * * * * * * * * * *
DigitsDescription
1-5ZIP Code
6-9Plus4 code
10-11Delivery point
12Check digit
* * @return postNet */ public function getPostNet() { return $this->PostNet; } /** * Address Type - The type of address that was coded * (PO Box, Rural Route, and so on), using the input address. * * * * * * * * * * * * * * * * * * * * * * * * *
CodeType
FFirm or company address
GGeneral Delivery address
HHigh-rise or business complexs
PPO Box address
RRural route address
SStreet or residential address
* * @see AddressType * @return string */ public function getAddressType() { return $this->AddressType; } /** * Gets the latitude value for this ValidAddress. * * @return latitude */ public function getLatitude() { return $this->Latitude; } /** * Gets the longitude value for this ValidAddress. * * @return longitude */ public function getLongitude() { return $this->Longitude; } // mutators /**#@+ * Mutator * @access public * @var string * @return Address */ public function setAddressCode($value) { $this->AddressCode = $value; return $this; } public function setLine1($value) { $this->Line1 = $value; return $this; } public function setLine2($value) { $this->Line2 = $value; return $this; } public function setLine3($value) { $this->Line3 = $value; return $this; } public function setCity($value) { $this->City = $value; return $this; } public function setRegion($value) { $this->Region = $value; return $this; } public function setPostalCode($value) { $this->PostalCode = $value; return $this; } public function setCountry($value) { $this->Country = $value; return $this; } /**#@-*/ /** * Mutator * @access public * @param integer * @return Address */ public function setTaxRegionId($value) { $this->TaxRegionId = $value; return $this; } /** * Address line 4. * * @param line4 - Address line 4 * @var string */ public function setLine4($value) { $this->Line4 = $value; return $this; } /** * County Name. * * @param county - County Name * @var string */ public function setCounty($value) { $this->County= $value; return $this; } /** * Federal Information Processing Standards Code (USA). *

This is a unique code representing each geographic combination of state, county, and city. * The code is made up of the Federal Information Processing Code (FIPS) that uniquely identifies each state, county, and city in the U.S. * See Federal Information Processing Standards (FIPS) Codes for more details. * * * * * * * * * * * * * * * *
DigitsDescription
1-2State code
3-5County code
6-10City code
* * @param fipsCode * @var string */ public function setFipsCode($value) { $this->FipsCode= $value; return $this; } /** * The carrier route associated with the input address (USA). *

The CarrierRoute Property is a 4 character string set * after a successful return from the VerifyAddress Method. *

The first character of this property is always alphabetic, * and the last three characters are numeric. For example, * "R001" or "C027" would be typical carrier routes. The * alphabetic letter indicates the type of delivery associated * with this address. * * * * * * * * * * * * * * * * * * * * * * * * * * *
TermDescription
BPO Box
CCity Delivery
GGeneral Delivery
HHighway Contract
RRural Route
* * @param carrierRoute * @var string */ public function setCarrierRoute($value) { $this->CarrierRoute= $value; return $this; } /** * A 12-digit POSTNet barcode (USA). * * * * * * * * * * * * * * * * * *
DigitsDescription
1-5ZIP Code
6-9Plus4 code
10-11Delivery point
12Check digit
* * @param postNet * @var string */ public function setPostNet($value) { $this->PostNet= $value; return $this; } /** * Address Type - The type of address that was coded * (PO Box, Rural Route, and so on), using the input address. * * * * * * * * * * * * * * * * * * * * * * * * *
CodeType
FFirm or company address
GGeneral Delivery address
HHigh-rise or business complexs
PPO Box address
RRural route address
SStreet or residential address
* * @see AddressType * @param addressType * @var string */ public function setAddressType($value) { $this->AddressType= $value; return $this; } /** * Sets the latitude value for this ValidAddress. * * @param latitude */ public function setLatitude($value) { $this->Latitude= $value; return $this;} /** * Sets the longitude value for this ValidAddress. * * @param longitude */ public function setLongitude($value) { $this->Longitude= $value; return $this; } } ?>PK+?\V=AdjustTaxRequest.class.phpnuW+AAdjustmentDescription = $value; } /** * Reason for Adjusting document. *

     * Sets a valid reason for the given AdjustTax call. Adjustment Reason is a high level classification of why an Original Document is being modified.
     * 0 Not Adjusted 
	 * 1 Sourcing Issue 
	 * 2 Reconciled with General Ledger 
	 * 3 Exemption Certificate Applied 
	 * 4 Price or Quantity Adjusted 
	 * 5 Item Returned 
	 * 6 Item Exchanged 
	 * 7 Bad Debt 
	 * 8 Other (Explain) 
		Must provide AdjustmentDescription
 		
     * 
     * Please visit Avalara's Administrative Console's transaction adjustment section for latest AdjustmentReasonList. 
	 *
	 * @param int $value	 
	 */		
    public function setAdjustmentReason($value) { $this->AdjustmentReason = $value;}
    
    
	/**
	 * Holds the data for Adjust Tax call. It takes the information needed for GetTax call. 
	 *
	 * @param GetTaxRequest $value
	 */
    public function setGetTaxRequest($value) { $this->GetTaxRequest = $value;}
	 
 	public function getAdjustmentReason() { return $this->AdjustmentReason;}	//int

    public function getAdjustmentDescription() { return $this->AdjustmentDescription;}	
        

    public function getGetTaxRequest() { return $this->GetTaxRequest;}	//string   invoice number
 

	

	
}

?>PK+?\>pܭAddCustomer.class.phpnuW+AAddCustomerRequest=$value;} // AddCustomerRequest
  public function getAddCustomerRequest(){return $this->AddCustomerRequest;} // AddCustomerRequest

}

?>
PK+?\jNNGetTaxHistoryRequest.class.phpnuW+A
 * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document. 
 * 

* * @see GetTaxHistoryResult * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ class GetTaxHistoryRequest extends TaxRequest { private $DetailLevel; public function __construct() { parent::__construct(); $this->DetailLevel = DetailLevel::$Document; // this is right Document $this->DocType = DocumentType::$SalesOrder; // this is right Document } /** * Specifies the level of detail to return. * * @return detailLevel * @var string * @see DetailLevel */ public function getDetailLevel() { return $this->DetailLevel; } /** * Specifies the level of detail to return. * * @see DetailLevel * @return string */ public function setDetailLevel($value) { DetailLevel::Validate($value); $this->DetailLevel = $value; return $this; } //Summary or Document or Line or Tax or Diagnostic - enum } ?>PK+?\"~WWAddress.class.phpnuW+AExample: *
 *  $port = new AddressServiceSoap();
 *
 *  $address = new Address();
 *  $address->setLine1("900 Winslow Way");
 *  $address->setLine2("Suite 130");
 *  $address->setCity("Bainbridge Is");
 *  $address->setRegion("WA");
 *  $address->setPostalCode("98110-2450");
 *
 *  $result = $port->validate($address,TextCase::$Upper);
 *  $addresses = $result->ValidAddresses;
 *  print("Number of addresses returned is ". sizseof($addresses));
 *
 * 
* @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address */ class Address { private $AddressCode; private $Line1; private $Line2; private $Line3; private $City; private $Region; private $PostalCode; private $Country = 'USA'; private $TaxRegionId = 0; /** * Construct a new Address. * * Constructs a new instance of Address. *
     * $address = new Address();
     * 
* * @param string $line1 * @param string $line2 * @param string $line3 * @param string $city * @param string $region * @param string $postalCode * @param string $country * @param integer $taxRegionId */ public function __construct($line1=null,$line2=null,$line3=null,$city=null,$region=null,$postalCode=null,$country='USA',$taxRegionId=0) { $this->Line1 = $line1; $this->Line2 = $line2; $this->Line3 = $line3; $this->City = $city; $this->Region = $region; $this->PostalCode = $postalCode; $this->Country = $country; $this->TaxRegionId = $taxRegionId; } /** * Programmatically determined value used internally by the adapter. * * @param string $value * */ public function setAddressCode($value) { $this->AddressCode = $value; } /** * Address line 1 * * @param string $value */ public function setLine1($value) { $this->Line1 = $value; } /** * Address line 2 * * @param string $value */ public function setLine2($value) { $this->Line2 = $value; } /** * Address line 3 * * @param string $value */ public function setLine3($value) { $this->Line3 = $value; } /** * City name * * @param string $value */ public function setCity($value) { $this->City = $value; } /** * State or province name or abbreviation * * @param string $value */ public function setRegion($value) { $this->Region = $value; } /** * Postal or ZIP code * * @param string $value */ public function setPostalCode($value) { $this->PostalCode = $value; } /** * Country name * * @param string $value */ public function setCountry($value) { $this->Country = $value; } /** * TaxRegionId provides the ability to override the tax region assignment for an address. * * @param string $value */ public function setTaxRegionId($value) { $this->TaxRegionId = $value; } /** * Programmatically determined value used internally by the adapter. * * @return string $value */ public function getAddressCode() { return $this->AddressCode; } /** * Address line 1 * * @return string $value */ public function getLine1() { return $this->Line1; } /** * Address line 2 * * @return string $value */ public function getLine2() { return $this->Line2; } /** * Address line 3 * * @return string $value */ public function getLine3() { return $this->Line3; } /** * City name * * @return string $value */ public function getCity() { return $this->City; } /** * State or province name or abbreviation * * @return string $value */ public function getRegion() { return $this->Region; } /** * Postal or ZIP code * * @return string $value */ public function getPostalCode() { return $this->PostalCode; } /** * Country name * * @return string $value */ public function getCountry() { return $this->AddressCode; } /** * TaxRegionId provides the ability to override the tax region assignment for an address. * * @return string $value */ public function getTaxRegionId() { return $this->TaxRegionId; } /** * Compares Addresses * @access public * @param Address * @return boolean */ public function equals(&$other) // fix me after replace { return $this === $other || ( strcmp($this->AddressCode , $other->AddressCode) == 0 && strcmp($this->Line1 , $other->Line1) == 0 && strcmp($this->Line2 , $other->Line2) == 0 && strcmp($this->Line3 , $other->Line3) == 0 && strcmp($this->City , $other->City) == 0 && strcmp($this->Region , $other->Region) == 0 && strcmp($this->PostalCode , $other->PostalCode) == 0 && strcmp($this->Country , $other->Country) == 0 && $this->TaxRegionId === $other->TaxRegionId ); } } ?>PK+?\vzPostTaxRequest.class.phpnuW+A * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document. *

* * @see PostTaxResult * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ class PostTaxRequest extends TaxRequest { private $DocDate; //date private $TotalAmount; // decimal private $TotalTax; // decimal private $Commit=false; // boolean private $NewDocCode; //string public function __construct() { parent::__construct(); } public function getDocDate() { return $this->DocDate; } public function getTotalAmount() { return $this->TotalAmount; } public function getTotalTax() { return $this->TotalTax; } public function getCommit() { return $this->Commit; } public function getNewDocCode() { return $this->NewDocCode; } /** * DocDate should be in the format yyyy-mm-dd * * @param date $value */ public function setDocDate($value) { $this->DocDate = $value; return $this; } /** *The total amount (not including tax) for the document. * * @param decimal $value */ public function setTotalAmount($value) { $this->TotalAmount = $value; return $this; } /** * The total tax for the document. * * @param decimal $value */ public function setTotalTax($value) { $this->TotalTax = $value; return $this; } /** * If this is set to True, AvaTax will Post and Commit the document in one call. * A very useful feature if you want to Post/Commit the document in one call this avoides one round trip to AvaTax server. * * @param string $value */ public function setCommit($value) { $this->Commit = ($value ? true : false); return $this; } /** * New Document Code for the document. * As on this version of SDK DocCode can be changed during post using NewDocCode. * @param string $value */ public function setNewDocCode($value) { $this->NewDocCode = $value; } } ?>PK+?\!=rCertificateStatus.class.phpnuW+APK+?\xBډBoundaryLevel.class.phpnuW+APK+?\R|eAVObject.class.phpnuW+A￿PK+?\QALine.class.phpnuW+ANo=$no; $this->Qty=$qty; $this->Amount=$amount; $this->Discounted=false; } /* * Mutator * @access public * @param integer */ /** * Line Number. * * @param string $value */ public function setNo($value) { $this->No = $value; return $this; } //string // line Number of invoice /** * Item Code (SKU) * * @param string $value */ public function setItemCode($value) { $this->ItemCode = $value; return $this; } //string /** * Sets the description which defines the description for the product or item. * * @param string $value */ public function setDescription($value) { $this->Description = $value; return $this; } //string /** * System or Custom Tax Code. * * @param string $value */ public function setTaxCode($value) { $this->TaxCode = $value; return $this; } //string /** * Revenue Account. * * @param string $value */ public function setRevAcct($value) { $this->RevAcct = $value; return $this; } //string /** * Client specific reference field. * * @param string $value */ public function setRef1($value) { $this->Ref1 = $value; return $this; } //string /** * Client specific reference field. * * @param string $value */ public function setRef2($value) { $this->Ref2 = $value; return $this; } //string /** * Exemption number for this line * * @param string $value */ public function setExemptionNo($value) { $this->ExemptionNo = $value; return $this; } //string //zero tax will result if filled in /** * The client application customer or usage type. *

* This is used to determine the exempt status of the transaction based on the exemption tax rules for the * jurisdictions involved. This may also be set at the line level. *

*

* The standard values for the CustomerUsageType (A-L).
A � Federal Government
B � State/Local Govt.
C � Tribal Government
D � Foreign Diplomat
E � Charitable Organization
F � Religious/Education
G � Resale
H � Agricultural Production
I � Industrial Prod/Mfg.
J � Direct Pay Permit
K � Direct Mail
L - Other
*

* @param string $value */ public function setCustomerUsageType($value) { $this->CustomerUsageType = $value; return $this; } //string /** * Enter description here... * * @param string $value */ public function setBatchCode($value) { $this->BatchCode = $value; return $this; } //string /** * The quantity represented by this line. * * @param string $value */ public function setQty($value) { $this->Qty = $value; return $this; } //decimal /** * The total amount for this line item (Qty * UnitPrice). * * @param string $value */ public function setAmount($value) { $this->Amount = $value; return $this; } //decimal // TotalAmmount /** * TaxOverride for the document at line level. * * @param string $value */ public function setTaxOverride($value) { $this->TaxOverride = $value; return $this; } //decimal /** * True if the document discount should be applied to this line * * @param string $value */ public function setDiscounted( $value) { $this->Discounted = ($value ? true : false); return $this; } //boolean is discount applied to this item /** * Sets the Address used as the "Ship From" location for a specific line item. * * @param string $value */ public function setOriginAddress(&$value) { $this->OriginAddress = $value; return $this; } //Address /** * Sets the Address used as the "Ship To" location for a specific line item. * * @param string $value */ public function setDestinationAddress(&$value) { $this->DestinationAddress = $value; return $this; } //Address /** * True if tax is included in the line. * @param boolean */ public function setTaxIncluded($value) { $this->TaxIncluded=$value; } /** * True if tax is included in the line. * @return boolean */ public function getTaxIncluded($value) { return $this->TaxIncluded; } public function registerAddressesIn(&$getTaxRequest) { if(is_null($this->OriginAddress)) { $this->OriginAddress = $getTaxRequest->getOriginAddress(); } if(is_null($this->DestinationAddress)) { $this->DestinationAddress = $getTaxRequest->getDestinationAddress(); } $this->OriginCode = $getTaxRequest->registerAddress($this->OriginAddress); $this->DestinationCode = $getTaxRequest->registerAddress($this->DestinationAddress); } public function postFetchWithAddresses($addresses) { $this->OriginAddress = $addresses[$this->OriginCode]; $this->DestinationAddress = $addresses[$this->DestinationCode]; } //accessors /**#@+ * Accessor * @access public * @return string */ public function getNo () { return $this->No; } //string // line Number of invoice public function getItemCode() { return $this->ItemCode; } //string public function getDescription() { return $this->Description; } //string public function getTaxCode() { return $this->TaxCode; } //string public function getRevAcct() { return $this->RevAcct; } //string public function getRef1() { return $this->Ref1; } //string public function getRef2() { return $this->Ref2; } //string public function getExemptionNo() { return $this->ExemptionNo; } //string //zero tax will result if filled in public function getCustomerUsageType() { return $this->CustomerUsageType; } //string public function getBatchCode() { return $this->BatchCode; } //string public function getQty() { return $this->Qty; } //decimal public function getAmount() { return $this->Amount; } //decimal // TotalAmmount public function getTaxOverride() { return $this->TaxOverride; } //decimal public function getDiscounted() { return $this->Discounted; } //boolean is discount applied to this item public function getOriginAddress() { return $this->OriginAddress; } //Address public function getDestinationAddress() { return $this->DestinationAddress; } //Address /**#@-*/ } ?>PK+?\`Zp44)GetExemptionCertificatesRequest.class.phpnuW+AsetDate(0001,01,01); $this->FromDate=$dateTime->format("Y-m-d"); $dateTime->setDate(0001,01,01); $this->ToDate=$dateTime->format("Y-m-d"); } public function setCustomerCode($value){$this->CustomerCode=$value;} // string public function getCustomerCode(){return $this->CustomerCode;} // string public function setFromDate($value){$this->FromDate=$value;} // dateTime public function getFromDate(){return $this->FromDate;} // dateTime public function setToDate($value){$this->ToDate=$value;} // dateTime public function getToDate(){return $this->ToDate;} // dateTime public function setRegion($value){$this->Region=$value;} // string public function getRegion(){return $this->Region;} // string public function setCompanyCode($value){$this->CompanyCode=$value;} // string public function getCompanyCode(){return $this->CompanyCode;} // string } ?> PK+?\BmmAddressServiceSoap.class.phpnuW+A * Example: *
 *  $addressService = new AddressServiceSoap();
 * 
* * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Address * */ if(!class_exists('AvalaraSoapClient')) require (VMAVALARA_CLASS_PATH.DS.'AvalaraSoapClient.class.php'); class AddressServiceSoap extends AvalaraSoapClient { static private $servicePath = '/Address/AddressSvc.asmx'; static protected $classmap = array( 'Validate' => 'Validate', 'BaseRequest' => 'BaseRequest', 'ValidateRequest' => 'ValidateRequest', 'BaseAddress' => 'BaseAddress', 'ValidAddress' => 'ValidAddress', 'TextCase' => 'TextCase', 'ValidateResult' => 'ValidateResult', 'BaseResult' => 'BaseResult', 'SeverityLevel' => 'SeverityLevel', 'Message' => 'Message', 'Profile' => 'Profile', 'Ping' => 'Ping', 'PingResult' => 'PingResult', 'IsAuthorized' => 'IsAuthorized', 'IsAuthorizedResult' => 'IsAuthorizedResult'); /** * Construct a proxy for Avalara's Address Web Service using the default URL as coded in the class or programatically set. * * Example: *
     *  $port = new AddressServiceSoap();
     *  $port->ping();
     * 
* * @see AvalaraSoapClient * @see TaxServiceSoap */ public function __construct($configurationName = 'Default',$config=0) { if(empty($config)){ vmdebug('AddressServiceSoap '.$configurationName); $config = new ATConfig($configurationName); } if(!class_exists('DynamicSoapClient')) require (VMAVALARA_CLASS_PATH.DS.'DynamicSoapClient.class.php'); $this->client = new DynamicSoapClient ( $config->addressWSDL, array ( 'location' => $config->url.$config->addressService, 'trace' => $config->trace, 'classmap' => AddressServiceSoap::$classmap ), $config ); //$this->client->__getTypes(); } /** * Checks authentication of and authorization to one or more * operations on the service. * * This operation allows pre-authorization checking of any * or all operations. It will return a comma delimited set of * operation names which will be all or a subset of the requested * operation names. For security, it will never return operation * names other than those requested (no phishing allowed). * * Example:
* isAuthorized("GetTax,PostTax") * * @param string $operations a comma-delimited list of operation names * * @return IsAuthorizedResult * @throws SoapFault */ public function isAuthorized($operations) { return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult; } /** * Verifies connectivity to the web service and returns version * information about the service. * * NOTE:This replaces TestConnection and is available on * every service. * * @param string $message for future use * @return PingResult * @throws SoapFault */ public function ping($message = '') { return $this->client->Ping(array('Message' => $message))->PingResult; } /** * Validates an address and returns a collection of possible * {@link ValidAddress} objects in a {@link ValidateResult} object. * * Takes an {@link Address}, an optional {@link TextCase} * property that determines the casing applied to a validated * address. It defaults to TextCase::$Default. * Example:
*
     *  $port = new AddressServiceSoap();
     *
     *  $address = new Address();
     *  $address->setLine1("900 Winslow Way");
     *  $address->setLine2("Suite 130");
     *  $address->setCity("Bainbridge Is");
     *  $address->setRegion("WA");
     *  $address->setPostalCode("98110-2450");
     *
     *  $result = $port->validate(new ValidateRequest($address,TextCase::$Upper));
     *  $addresses = $result->validAddresses();
     *  print('Number of addresses returned is: '.sizeof($addresses)); 
     * 
* * @param ValidateRequest * @return ValidateResult * * @throws SoapFault */ public function validate($validateRequest) { return $this->client->Validate( array('ValidateRequest' => $validateRequest) )->ValidateResult; //return $result->ValidateResult(); } } ?> PK+?\P;_ _ $ReconcileTaxHistoryRequest.class.phpnuW+AEndDate = date("Y-m-d"); $this->DocStatus =DocStatus::$Any; } public function getCompanyCode() { return $this->CompanyCode;} public function getstartDate() { return $this->StartDate; } public function getEndDate() { return $this->EndDate; } public function getDocStatus() { return $this->DocStatus; } /** * Sets the client application company reference code. * * @param string $value */ public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; } /** * Set this to retrieve data FROM a specific date. * * @param date $value */ public function setStartDate($value) { $this->StartDate = $value; return $this; } /** * Set this to retrieve data TO a specific date. * * @param date $value */ public function setEndDate($value) { $this->EndDate = $value; return $this; } /** * Set this to retrieve data with a specific DocStatus. * * @param string $value */ public function setDocStatus($value) { DocStatus::Validate($value); $this->DocStatus = $value; return $this; } public function setDocType($value){$this->DocType=$value;} // DocType public function getDocType(){return $this->DocType;} // DocType public function setLastDocCode($value){$this->LastDocCode=$value;} // string public function getLastDocCode(){return $this->LastDocCode;} // string public function setPageSize($value){$this->PageSize=$value;} // int public function getPageSize(){return $this->PageSize;} // int } ?>PK+?\<~TaxDetail.class.phpnuW+AStateAssignedNo; } /** * Gets the JurisdictionType. *

* *

* @see JurisdictionType @see GetTaxResults * @return JurisdictionType */ public function getJurisType() {return $this->JurisType; } /** * Gets the JurisCode. *

*

* @see JurisCode @see GetTaxResults * @return string */ public function getJurisCode() {return $this->JurisCode; } /** * Gets the TaxType. *

*

@see GetTaxResults * @return TaxType */ public function getTaxType() {return $this->TaxType; } /** * Gets the Taxable amount. *

*

@see GetTaxResults * @return decimal */ public function getTaxable() {return $this->Taxable; } /** * Gets the Taxable amount. *

*

@see GetTaxResults * @return decimal */ public function getBase() {return $this->Base; } /** * Gets the Rate amount. *

*

@see GetTaxResults * @return decimal */ public function getRate() {return $this->Rate; } /** * Gets the Tax amount. *

The tax amount, i.e. the calculated tax (base() * rate()) *

@see GetTaxResults * @return decimal */ public function getTax() {return $this->Tax; } /** * Gets the non-taxable amount.. *

The non-taxable amount. *

@see GetTaxResults * @return decimal */ public function getNonTaxable() {return $this->NonTaxable; } /** * Gets theExemption amount.. *

The exempt amount for this TaxDetail. *

@see GetTaxResults * @return decimal */ public function getExemption() {return $this->Exemption; } /** * Gets the jurisdiction name for this TaxDetail. *

Gets the jurisdiction name for this TaxDetail. *

@see GetTaxResults * @return decimal */ public function getJurisName() {return $this->JurisName; } /** * *

Gets the taxName value. It further defines tax and jurisdiction. *

@see GetTaxResults * @return decimal */ public function getTaxName() {return $this->TaxName; } /** * Gets the taxAuthorityType value for this TaxDetail. *

Gets the taxAuthorityType value for this TaxDetail. *

@see GetTaxResults * @return decimal */ public function getTaxAuthorityType() {return $this->TaxAuthorityType; } //@author:swetal public function getCountry(){ return $this->Country;} public function getRegion(){ return $this->Region;} public function getTaxCalculated(){ return $this->TaxCalculated;} public function getTaxGroup(){ return $this->TaxGroup;} } ?>PK-?\x66avatar.galleria.phpnuW+APK-?\avatar.image.phpnuW+Apath = $path; $this->numberFolder = $numberFolder; } public function setDescriptions($descriptions) { $this->descriptions = $descriptions; } public function getArrayImageLinks() { $pathRoot= JPath::clean(JPATH_ROOT.DIRECTORY_SEPARATOR.'images/'); sort($this->path); for($p = 0; $p < $this->numberFolder; $p++) { $ListImage[$p] = JFolder::files($pathRoot.$this->path[$p],$filter = '.'); sort($ListImage[$p]); } $tmpListImage = array(); for($p = 0; $p < $this->numberFolder; $p++) { $imgInFolder=0; $tmpListImage[$p] = array(); for($n = 0;$n < sizeof($ListImage[$p]); $n++) { $tmp = $ListImage[$p][$n]; $pattern = '/[^A-Za-z0-9._\\-+\s]/'; $tmpname = explode('.', $tmp); $ext = end($tmpname); if(strtolower($ext) == 'png' || strtolower($ext) == 'jpeg' || strtolower($ext) == 'jpg' || strtolower($ext) == 'gif' || strtolower($ext) == 'bmp') { if(preg_match($pattern, $tmp)); else $tmpListImage[$p][$imgInFolder++] = $ListImage[$p][$n]; } } } return $tmpListImage; } public function getArrayImageInfo($descriptons) { if($descriptons == NULL) return; else{ $tmpArrayDescription = explode('$',$descriptons); $tmpArray = array(); for($n = 0; $n < sizeof($tmpArrayDescription) ; $n++) { $tmp = explode('=>',$tmpArrayDescription[$n]); if(sizeof($tmp) >= 2) $tmpArray["$tmp[0]"] = $tmp[1]; else $tmpArray["$tmp[0]"] = NULL; } ksort($tmpArray); return $tmpArray; } } } } ?>PK.?\ 8D8D agHelper.phpnuW+A $array * @return */ public static function array_sorting($array,$targetFolder,$arrange) { $ag_array_data = Array(); // READS XML DATA AND GENERATES ARRAYS foreach ($array as $key => $value) { // Set Possible Description File Apsolute Path // Instant patch for upper and lower case... $ag_pathWithStripExt = $targetFolder . agHelper::ag_removExtension(basename($value)); $ag_XML_path = $ag_pathWithStripExt . ".xml"; if (agHelper::ag_exists($ag_pathWithStripExt . ".XML")) { $ag_XML_path = $ag_pathWithStripExt . ".XML"; } $ag_xml_value = Array(); $ag_xml_value["value"] = $value; // IMAGE NAME $ag_xml_value["priority"] = "none"; // DEFAULT PRIORITY $ag_xml_value["date"] = date("YmdHi", filemtime($targetFolder.$value)); // DEFAULT DATE if (agHelper::ag_exists($ag_XML_path)) { $ag_XML_xml = simplexml_load_file($ag_XML_path); if(isset($ag_XML_xml)){ if (isset($ag_XML_xml->visible)){ if ((string)$ag_XML_xml->visible == 'false'){ continue; // SKIP HIDDEN IMAGES } } if (isset($ag_XML_xml->priority) && is_numeric((string)$ag_XML_xml->priority) && (string)$ag_XML_xml->priority >= 0) { $ag_xml_value["priority"] = (string)$ag_XML_xml->priority; // XML PRIORITY } } } $ag_array_data[] = $ag_xml_value; } $sort_by= 'priority'; switch ($arrange) { case "date": $sort_by = 'date'; break; case "name": $sort_by = 'value'; break; } // for all arguments without the first starting at end of list // clear arrays $new_array = array(); $temporary_array = array(); // walk through original array foreach($ag_array_data as $original_key => $original_value) { // and save only values $temporary_array[] = $original_value[$sort_by]; } // sort array on values natcasesort($temporary_array); if($sort_by=="date"){ $temporary_array=array_reverse($temporary_array,true); } // delete double values $temporary_array = array_unique($temporary_array); // walk through temporary array foreach($temporary_array as $temporary_value) { // walk through original array foreach($ag_array_data as $original_key => $original_value) { // and search for entries having the right value if($temporary_value == $original_value[$sort_by]) { // save in new array $new_array[$original_key] = $original_value; } } } // update original array $ag_array_data = $new_array; // CREATE SORTED ARRAY $array = Array(); foreach($ag_array_data as $original_key => $original_value) { // and save only values $array[] = $original_value['value']; } return $array; } /** * TODO:Add description * @param $hex * @param $adjust * @return */ public static function ag_foregroundColor($hex, $adjust) { $red = hexdec($hex[0] . $hex[1]); $green = hexdec($hex[2] . $hex[3]); $blue = hexdec($hex[4] . $hex[5]); if (($red + $green + $blue) >= 255) { $red -= $adjust; $green -= $adjust; $blue -= $adjust; if ($red < 0) $red = 0; if ($green < 0) $green = 0; if ($blue < 0) $blue = 0; }else { $red += $adjust; $green += $adjust; $blue += $adjust; if ($red > 255) $red = 255; if ($green > 255) $green = 255; if ($blue > 255) $blue = 255; } return str_pad(dechex($red), 2, '0', 0) . str_pad(dechex($green), 2, '0', 0) . str_pad(dechex($blue), 2, '0', 0); } /** * IMAGEINFO Last Update: 06.12.2008. Igor Kekeljevic, 2008. * @param $imageURL * @return $imageInfo array:"width","height","type","size" */ public static function ag_imageInfo($imageURL) { list($width, $height, $type, $attr) = getimagesize($imageURL); $types = Array( 1 => 'GIF', 2 => 'JPG', 3 => 'PNG', 4 => 'SWF', 5 => 'PSD', 6 => 'BMP', 7 => 'TIFF(intel byte order)', 8 => 'TIFF(motorola byte order)', 9 => 'JPC', 10 => 'JP2', 11 => 'JPX', 12 => 'JB2', 13 => 'SWC', 14 => 'IFF', 15 => 'WBMP', 16 => 'XBM' ); if ($type) { return $imageInfo = array( "width" => $width, "height" => $height, "type" => $types[$type], "size" => filesize($imageURL) ); } } /** * Rounds the file size for output * @param $size * @return */ public static function ag_fileRoundSize($size) { $bytes = array('B', 'KB', 'MB', 'GB', 'TB'); foreach ($bytes as $val) { if ($size > 1024) { $size = $size / 1024; } else { break; } } return round($size, 2) . " " . $val; } /** * Read's all folders in folder. * @param $targetFolder * @return array or null */ public static function ag_foldersArrayFromFolder($targetFolder) { $returnValue = null; unset($folders); if (!file_exists($targetFolder)) { return $returnValue; } $folders = array(); $dh = opendir($targetFolder); if ($dh) { while (($f = readdir($dh)) !== false) { if (is_dir($targetFolder . $f) && $f != "." && $f != "..") { $folders[] = $f; } } $returnValue = $folders; } closedir($dh); return $returnValue; } /** * Removes thumb folder * @param $originalFolder * @param $thumbFolder */ public static function ag_cleanThumbsFolder($originalFolder, $thumbFolder) { $origin = agHelper::ag_foldersArrayFromFolder($originalFolder); $thumbs = agHelper::ag_foldersArrayFromFolder($thumbFolder); $diffArray = array_diff($thumbs, $origin); if ($diffArray != null) { foreach ($diffArray as $diffFolder) { agHelper::ag_sureRemoveDir($thumbFolder . $diffFolder, true); } } } /** * Removes old and unused thumbs * @param $imagesFolder * @param $thumbsFolder * @param $albumsInUse * @return */ public static function ag_clearOldThumbs($imagesFolder, $thumbsFolder, $albumsInUse=false) { // Generate array of thumbs $targetFolder = $thumbsFolder; $thumbs = agHelper::ag_imageArrayFromFolder($targetFolder, 0); // Generate array of images $targetFolder = $imagesFolder; $images = agHelper::ag_imageArrayFromFolder($targetFolder, 0); if (empty($images) && !$albumsInUse) { agHelper::ag_sureRemoveDir($thumbsFolder, 1); return; } // Locate and delete old thumbs if (!empty($thumbs)) { foreach ($thumbs as $thumbsKey => $thumbsValue) { if ((!in_array($thumbsValue, $images)) && (!empty($thumbsValue)) && file_exists($thumbsFolder . $thumbsValue)) { unlink($thumbsFolder . $thumbsValue); } } } } /** * Makes directory, returns TRUE if exists or made * @param string $pathname The directory path. * @return boolean returns TRUE if exists or made or FALSE on failure. */ public static function ag_mkdir_recursive($pathname, $mode) { is_dir(dirname($pathname)) || agHelper::ag_mkdir_recursive(dirname($pathname), $mode); return is_dir($pathname) || @mkdir($pathname, $mode); } /** * Removes dir or file * @param $dir * @param $DeleteMe * @return */ public static function ag_sureRemoveDir($dir, $DeleteMe) { if (!$dh = @opendir($dir)) return; while (false !== ($obj = readdir($dh))) { if ($obj == '.' || $obj == '..') continue; if (!@unlink($dir . '/' . $obj)) agHelper::ag_sureRemoveDir($dir . '/' . $obj, true); } closedir($dh); if ($DeleteMe) { @rmdir($dir); } } /** * Read's all images from folder * @param $targetFolder * @param $arrange * @return Sorted array of pictures */ public static function ag_imageArrayFromFolder($targetFolder) { $images = Array(); if (!agHelper::ag_exists($targetFolder)) { return null; } $dh = opendir($targetFolder); if ($dh) { $ag_ext_valid = array("jpg", "jpeg", "gif", "png"); // SET VALID IMAGE EXTENSION while (($f = readdir($dh)) !== false) { if (is_numeric(array_search(strtolower(agHelper::ag_getExtension(basename($f))), $ag_ext_valid))) { $images[] = $f; } } } closedir($dh); return $images; } /** * Gets the atributes value by name, else returns false * @param string $attrib * @param string $tag * @param value $default * @return $default value if no presented */ public static function ag_getParams($attrib, $tag, $default) { //get attribute from html tag $re = '/' . preg_quote($attrib) . '=([\'"])?((?(1).+?|[^\s>]+))(?(1)\1)/is'; if (preg_match($re, $tag, $match)) { return urldecode($match[2]); } return $default; } /** * Creates thumbnail from original images * return $errorMessage if creation fails * @param string $original_file * @param string $thumb_file * @param int $new_w * @param int $new_h * @param string $autoSize * @return type */ public static function ag_createThumb($original_file, $thumb_file, $new_w, $new_h, $autoSize) { //GD check if (!function_exists('gd_info')) { // ERROR - Invalid image return JText::_('AG_GD_SUPPORT_IS_NOT_ENABLED'); } // Create src_img if (preg_match("/jpg|jpeg/i", $original_file)) { @$src_img = imagecreatefromjpeg($original_file); } else if (preg_match("/png/i", $original_file)) { @$src_img = imagecreatefrompng($original_file); } else if (preg_match("/gif/i", $original_file)) { @$src_img = imagecreatefromgif($original_file); } else { return JText::sprintf('AG_UNSUPPORTED_IMAGE_TYPE_FOR_IMAGE', $original_file); } @$src_width = imageSX($src_img); //$src_width @$src_height = imageSY($src_img); //$src_height $src_w = $src_width; $src_h = $src_height; $src_x = 0; $src_y = 0; $dst_w = $new_w; $dst_h = $new_h; $src_ratio = $src_w / $src_h; $dst_ratio = $new_w / $new_h; switch ($autoSize) { case "width": // AUTO WIDTH $dst_w = $dst_h * $src_ratio; break; case "height": // AUTO HEIGHT $dst_h = $dst_w / $src_ratio; break; case "none": // If proportion of source image is wider then proportion of thumbnail image, then use full height of source image and crop the width. if ($src_ratio > $dst_ratio) { // KEEP HEIGHT, CROP WIDTH $src_w = $src_h * $dst_ratio; $src_x = floor(($src_width - $src_w) / 2); } else { // KEEP WIDTH, CROP HEIGHT $src_h = $src_w / $dst_ratio; $src_y = floor(($src_height - $src_h) / 2); } break; } @$dst_img = imagecreatetruecolor($dst_w, $dst_h); // PNG THUMBS WITH ALPHA PATCH if (preg_match("/png/i", $original_file)) { // Turn off alpha blending and set alpha flag imagealphablending($dst_img, false); imagesavealpha($dst_img, true); } @imagecopyresampled($dst_img, $src_img, 0, 0, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h); if (preg_match("/jpg|jpeg/i", $original_file)) { @imagejpeg($dst_img, $thumb_file); } else if (preg_match("/png/i", $original_file)) { @imagepng($dst_img, $thumb_file); } else if (preg_match("/gif/i", $original_file)) { @imagegif($dst_img, $thumb_file); } else { return JText::sprintf('AG_COULD_NOT_CREATE_THUMBNAIL_FILE_FOR_IMAGE', $original_file); } @imagedestroy($dst_img); @imagedestroy($src_img); } /** * Creates blank HTML file * @param $filename */ public static function ag_indexWrite($filename) { $handle = fopen($filename, "w") or die(""); $contents = fwrite($handle, ''); fclose($handle); } /** * Parses OS name from $user_agent string * @param string $user_agent * @return string $OsName */ public static function ag_get_os_($user_agent) { $oses = array( 'Windows 3.11' => 'Win16', 'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', 'Windows 98' => '(Windows 98)|(Win98)', 'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)', 'Windows XP' => '(Windows NT 5.1)|(Windows XP)', 'Windows 2003' => '(Windows NT 5.2)', 'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 'Windows ME' => 'Windows ME', 'Open BSD' => 'OpenBSD', 'Sun OS' => 'SunOS', 'Linux' => '(Linux)|(X11)', 'Macintosh' => '(Mac_PowerPC)|(Macintosh)', 'QNX' => 'QNX', 'BeOS' => 'BeOS', 'OS/2' => 'OS\/2', 'Search Bot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp\/cat)|(msnbot)|(ia_archiver)' ); foreach ($oses as $os => $pattern) { if (preg_match('/' . $pattern . '/', $user_agent)) return $os; } return 'Unknown'; } /** * Removes the file extension * @param string $fileName * @return sting $fileNameNoExtension */ public static function ag_removExtension($fileName) { $ext = strrchr($fileName, '.'); if ($ext !== false) { $fileName = substr($fileName, 0, -strlen($ext)); } return $fileName; } /** * Returns extension from filename * @param string $fileName * @return string $extension */ public static function ag_getExtension($fileName) { return substr(strrchr($fileName, '.'), 1); } /** * Wrapper for standard file_exists * @param string $fileName * @return bool */ public static function ag_exists($fileName) { return file_exists($fileName); } /** * Check for existance of the remote file * @param string $path * @return bool */ public static function ag_remote_exists($path) { return (@fopen($path,"r")==true); } /** * Shrink string for display * @param type $string * @param type $stringLength * @param type $add * @return string */ public static function ag_shrinkString($string,$stringLength,$add=''){ if(strlen($string)>$stringLength){ $string = substr($string,0,$stringLength); $string.="..."; } return $string; } } ?> PK.?\CVX44 agPopup.phpnuW+A PK.?\!||jquery.scroll.js.phpnuW+AaddScriptDeclaration(' AG_jQuery(document).ready(function() { AG_jQuery(window).scrollTop('.$_GET['AG_form_scrollTop'].'); AG_jQuery(window).scrollLeft('.$_GET['AG_form_scrollLeft'].'); }); '); } ?> PK.?\aK33 agGallery.phpnuW+A $imageName */ function getImageInfo($imageName) { $this->imageInfo = agHelper::ag_imageInfo($this->imagesFolderPhysicalPath . DS . $imageName); $this->imageInfo["size"] = agHelper::ag_fileRoundSize($this->imageInfo["size"]); } /** * Returns gallery id formed from gallery index and article ID * @return */ function getGalleryID() { return $this->index . $this->articleID; } /** * Loads CSS file from the given path. * @param $path */ function loadCSS($path) { $this->doc->addStyleSheet($this->sitePath . PLUGIN_BASE_PATH . $path); } /** * Loads JavaScript file from the given path. * @param $path */ function loadJS($path) { $this->doc->addScript($this->sitePath . PLUGIN_BASE_PATH . $path); } /** * Loads JavaScript code block into document head. * @param $script */ function insertJSCode($script) { $this->doc->addScriptDeclaration($script); } /** * Returns specific inline parametar if entered or returns default value * @param $atrib * @param $default * @return */ function getParameter($atrib, $default) { return $this->ag_getParams($atrib, $this->match, $default); } /** * Returns full image html * @param $imageName * @param $cssClass * @return */ function writeImage($imageName, $cssClass='') { return '' . strip_tags($this->descArray[$imageName]) . ''; } /** * Returns thumb html * @param $imageName * @param $cssClass * @return */ function writeThumb($imageName, $cssClass='') { return '' . strip_tags($this->descArray[$imageName]) . ''; } /** * Generates HTML with new image tag * @param $image * @return */ function writeNewImageTag($image) { $FileAge = date("YmdHi", filemtime($this->imagesFolderPhysicalPath . $image)); // DEFAULT DATE $dateLimit = date("YmdHi", mktime(date("H"), date("i"), date("s"), date("m"), date("d") - (int) ($this->params['newImageTag_days']), date("Y"))); if ($FileAge > $dateLimit && $this->params['newImageTag'] == 1) { return ''; } } /** * Generates HTML with Popup engine integration * @param $image * @return */ function writePopupThumb($image) { $html = ''; if ($this->popupEngine->customPopupThumb) { $html = $this->popupEngine->customPopupThumb; $html = str_replace("{imagePath}", $this->imagesFolderPath . $image, $html); $html = str_replace("{imageDescription}", htmlspecialchars($this->descArray[$image], ENT_QUOTES, "UTF-8"), $html); $html = str_replace("{className}", $this->popupEngine->className, $html); $html = str_replace("{rel}", $this->popupEngine->rel, $html); $html = str_replace("{customAttr}", $this->popupEngine->customTag, $html); $html = str_replace("{newImageTag}", $this->writeNewImageTag($image), $html); $html = str_replace("{thumbImagePath}", $this->sitePath . PLUGIN_BASE_PATH . 'thumbs/' . $this->imagesFolderName . '/' . $image, $html); } else { $html.='popupEngine->customAttr . ' target="_blank">' . $this->writeNewImageTag($image) . '' . strip_tags($this->descArray[$image]) . ''; } return $html; } /** * Generates HTML link to album page * @param $default_folder_img * @param $thumbHeight * @return string */ function writeFolderThumb($default_folder_img, $thumbHeight) { // Album Support $html = ""; if ($this->params['albumUse'] && !empty($this->folders)) { $html.= '
' . "\n"; foreach ($this->folders as $folderKey => $folderName) { $thumb_file = ""; // Get Thumb URL value // Set Possible Description File Apsolute Path // Instant patch for upper and lower case... $ag_pathWithStripExt = $this->imagesFolderPhysicalPath . $folderName; $ag_XML_path = $ag_pathWithStripExt . ".XML"; if (file_exists($ag_pathWithStripExt . ".xml")) { $ag_XML_path = $ag_pathWithStripExt . ".xml"; } if (file_exists($ag_XML_path)) {// Check is descriptions file exists $ag_XML_xml = simplexml_load_file($ag_XML_path); if (isset($ag_XML_xml->thumb)) { $thumb_file = (string) $ag_XML_xml->thumb; } } if (empty($thumb_file)) { $images = agHelper::ag_imageArrayFromFolder($this->imagesFolderPhysicalPath . $folderName); if (!empty($images)) { $images = agHelper::array_sorting($images, $this->imagesFolderPhysicalPath . $folderName . DS, $this->params['arrange']); $thumb_file = $images[0]; // Get First image in folder as thumb } } if (!empty($thumb_file)) { $this->Album_generateThumb($folderName, $thumb_file); } else { continue; // SKIP IF NO THUMB IMAGES } $html.=''; $html.=''; $html.='' . "\n"; $html.=''; $html.=''; $html.=$this->descArray[$folderName]; $html.=''; $html.=''; } $html.= '
' . "\n"; } return $html; } /** * Pagination HTML output * @return string */ function writePagination() { // Paggination Support $html = ""; if ($this->params['paginUse']) { if ($this->params['paginUse']) { if (!empty($this->paginImgTotal) && ceil($this->paginImgTotal / $this->params['paginImagesPerGallery']) > 1) { $html.= '
'; $paginPrev = ($this->paginInitPages[$this->index] - 1); if ($paginPrev >= 1) { $html.= '' . JText::_("PREV") . ''; } for ($i = 1; $i <= ceil($this->paginImgTotal / $this->params['paginImagesPerGallery']); $i++) { if ($i == $this->paginInitPages[$this->index]) { $html.= '' . $i . ''; } else { $html.= '' . $i . ''; } } $paginNext = ($this->paginInitPages[$this->index] + 1); if ($paginNext <= ceil($this->paginImgTotal / $this->params['paginImagesPerGallery'])) { $html.= '' . JText::_("NEXT") . ''; } $html.= '
'; } } } return $html; } /** * Generates html with popup support for all the images in the gallery. * @return */ function writeAllPopupThumbs() { $html = ''; if (!empty($this->images)) { foreach ($this->images as $imagesKey => $imagesValue) { $html.='popupEngine->customTag . ' target="_blank">'; $html.=$this->writeNewImageTag($imagesValue); $html.='' . htmlspecialchars(strip_tags($this->descArray[$imagesValue])) . ''; } } return $html; } /** * Returns image description. The current localization is taken into account. * @param $imageName * @return */ function writeDescription($imageName) { return $this->descArray[$imageName]; } /* * Initialises Popup engine. Loads popupEngine settings and scripts */ function initPopup() { require ('plugins' . DS . 'content' . DS . 'admirorgallery' . DS . 'admirorgallery' . DS . 'popups' . DS . $this->params['popupEngine'] . DS . 'index.php'); return $this->popupEngine->initCode; } /* * Includes JavaScript code ad the end of the gallery html */ function endPopup() { return $this->popupEngine->endCode; } /* * adds new error value to the error array */ function addError($value) { if ($value != '') { $this->errors[] = $value; } } //************************************************************************** // END Template API functions // //************************************************************************** //************************************************************************** // Gallery Functions // //************************************************************************** /** * Gallery initialization * @param $match */ function initGallery($match) { $this->match = $match; $this->readInlineParams(); $this->imagesFolderNameOriginal = preg_replace("/{.+?}/", "", $match); $this->imagesFolderName = strip_tags($this->imagesFolderNameOriginal); // Pagination Support if ($this->params['paginUse'] || $this->params['albumUse']) { $this->paginInitPages[] = 1; if (!empty($_GET['AG_form_paginInitPages_' . $this->articleID])) { $AG_form_paginInitPages_array = explode(",", $_GET['AG_form_paginInitPages_' . $this->articleID]); $this->paginInitPages[$this->index] = $AG_form_paginInitPages_array[$this->index]; } $this->doc->addScriptDeclaration('var paginInitPages_' . $this->articleID . '="' . implode(",", $this->paginInitPages) . '";'); // Album Support $this->albumParentLink = ''; $this->albumInitFolders[] = ""; $this->albumInitFolders[$this->index] = $this->imagesFolderName; // Set init folders if (!empty($_GET['AG_form_albumInitFolders_' . $this->articleID])) { $AG_form_albumInitFolders_array = explode(",", $_GET['AG_form_albumInitFolders_' . $this->articleID]); $this->albumInitFolders[$this->index] = $AG_form_albumInitFolders_array[$this->index]; $this->imagesFolderName = $AG_form_albumInitFolders_array[$this->index]; // Support for Album Parent Link if ($this->imagesFolderName != $this->imagesFolderNameOriginal) { $this->albumParentLink = ' ' . basename(dirname($this->imagesFolderName)) . '
'; } } // Breadcrump Support if (JFactory::getApplication()->getMenu()->getActive()->query['view'] == "layout") { $this->writeBreadcrum(); } $this->doc->addScriptDeclaration('var albumInitFolders_' . $this->articleID . '="' . implode(",", $this->albumInitFolders) . '";'); } $this->imagesFolderPhysicalPath = $this->sitePhysicalPath . $this->params['rootFolder'] . $this->imagesFolderName . DS; $this->thumbsFolderPhysicalPath = $this->sitePhysicalPath . PLUGIN_BASE_PATH . 'thumbs' . DS . $this->imagesFolderName . DS; $this->imagesFolderPath = $this->sitePath . $this->params["rootFolder"] . $this->imagesFolderName . '/'; $this->readDescriptionFiles(); $this->loadImageFiles(); $this->loadFolders(); $this->currPopupRoot = 'popups/' . $this->params['popupEngine'] . '/'; $this->currTemplateRoot = 'templates/' . $this->params['template'] . '/'; $this->pluginPath = $this->sitePath . PLUGIN_BASE_PATH; } /** * Clears obsolete thumbnail folders */ function cleanThumbsFolder() { $this->ag_cleanThumbsFolder($this->imagesFolderPhysicalPath, $this->thumbsFolderPhysicalPath); } /** * Clears obsolete thumbnails */ function clearOldThumbs() { $this->ag_clearOldThumbs($this->imagesFolderPhysicalPath, $this->thumbsFolderPhysicalPath, $this->params['albumUse']); } /** * Reads description files */ private function readDescriptionFiles() { // Create Images Array unset($this->descArray); if (file_exists($this->imagesFolderPhysicalPath)) { $ag_images = Array(); $ag_files = JFolder::files($this->imagesFolderPhysicalPath); $ag_ext_valid = array("jpg", "jpeg", "gif", "png"); // SET VALID IMAGE EXTENSION foreach ($ag_files as $key => $value) { if (is_numeric(array_search(strtolower(agHelper::ag_getExtension(basename($value))), $ag_ext_valid))) { $ag_images[] = $value; } } $ag_files = array_merge($ag_images, JFolder::folders($this->imagesFolderPhysicalPath)); if (!empty($ag_files)) { foreach ($ag_files as $key => $f) { // Set image name as imageDescription value, as predifined value $this->descArray[$f] = $f; // Set Possible Description File Apsolute Path // Instant patch for upper and lower case... $ag_pathWithStripExt = $this->imagesFolderPhysicalPath . agHelper::ag_removExtension($f); $descriptionFileApsolutePath = $ag_pathWithStripExt . ".XML"; if (file_exists($ag_pathWithStripExt . ".xml")) { $descriptionFileApsolutePath = $ag_pathWithStripExt . ".xml"; } if (file_exists($descriptionFileApsolutePath)) {// Check is descriptions file exists $ag_imgXML_xml = JFactory::getXMLParser('simple'); $ag_imgXML_xml->loadFile($descriptionFileApsolutePath); $ag_imgXML_captions = $ag_imgXML_xml->document->captions[0]; $lang = JFactory::getLanguage(); $langTag = strtolower($lang->getTag()); // GET DEFAULT LABEL if (!empty($ag_imgXML_captions->caption)) { foreach ($ag_imgXML_captions->caption as $ag_imgXML_caption) { if (strtolower($ag_imgXML_caption->attributes('lang')) == "default") { $this->descArray[$f] = $ag_imgXML_caption->data(); } } } // GET CURRENT LANG LABEL if (!empty($ag_imgXML_captions->caption)) { foreach ($ag_imgXML_captions->caption as $ag_imgXML_caption) { if (strtolower($ag_imgXML_caption->attributes('lang')) == strtolower($langTag)) { $this->descArray[$f] = $ag_imgXML_caption->data(); } } } // RICH TEXT SUPPORT if ($this->params['plainTextCaptions']) { $this->descArray[$f] = strip_tags($this->descArray[$f]); } } } }// if(file_exists($descriptionFileApsolutePath)) } else $this->descArray = null; } /** * Loads images array, sorted as defined bu parametar. */ private function loadImageFiles() { $this->images = agHelper::ag_imageArrayFromFolder($this->imagesFolderPhysicalPath); if (!empty($this->images)) { $this->images = agHelper::array_sorting($this->images, $this->imagesFolderPhysicalPath,$this->params['arrange']); } // Paginations Support if ($this->params['paginUse']) { $this->paginImgTotal = count($this->images); $paginImages = Array(); $ag_pagin_start = ($this->paginInitPages[$this->index] - 1) * $this->params['paginImagesPerGallery']; $ag_pagin_end = ($this->paginInitPages[$this->index] * $this->params['paginImagesPerGallery']) - 1; if (!empty($this->images)) { for ($i = $ag_pagin_start; $i <= $ag_pagin_end; $i++) { if ($i < $this->paginImgTotal) { $paginImages[] = $this->images[$i]; } } } $this->images = $paginImages; } } /** * Loads folder array, sorted as defined bu parametar. */ private function loadFolders() { $this->folders = agHelper::ag_foldersArrayFromFolder($this->imagesFolderPhysicalPath); if (!empty($this->folders)) { $this->folders = agHelper::array_sorting($this->folders, $this->imagesFolderPhysicalPath,$this->params['arrange']); } } /** * Generates thumbs, check for settings change and recreates thumbs if it needs to */ function generateThumbs() { if (($this->params['thumbWidth'] == 0) || ($this->params['thumbHeight'] == 0)) { $this->adderror(JText::_("AG_CANNOT_CREATE_THUMBNAILS_WIDTH_AND_HEIGHT_MUST_BE_GREATER_THEN_0")); return; } //Add's index.html to thumbs folder if (!file_exists($this->thumbsFolderPhysicalPath . DS . 'index.html')) { $this->ag_indexWrite($this->thumbsFolderPhysicalPath . DS . 'index.html'); } // Check for Changes if (!empty($this->images)) { foreach ($this->images as $imagesKey => $imagesValue) { $original_file = $this->imagesFolderPhysicalPath . $imagesValue; $thumb_file = $this->thumbsFolderPhysicalPath . $imagesValue; if (!file_exists($thumb_file)) { $this->addError(agHelper::ag_createThumb($this->imagesFolderPhysicalPath . $imagesValue, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } else { list($imagewidth, $imageheight) = getimagesize($thumb_file); switch ($this->params['thumbAutoSize']) { case "none": if ($imageheight != $this->params['thumbHeight'] || $imagewidth != $this->params['thumbWidth']) { $this->addError(agHelper::ag_createThumb($this->imagesFolderPhysicalPath . $imagesValue, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; case "height": if ($imagewidth != $this->params['thumbWidth']) { $this->addError(agHelper::ag_createThumb($this->imagesFolderPhysicalPath . $imagesValue, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; case "width": if ($imageheight != $this->params['thumbHeight']) { $this->addError(agHelper::ag_createThumb($this->imagesFolderPhysicalPath . $imagesValue, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; } } // ERROR - Invalid image if (!file_exists($thumb_file)) { //$this->addError("Cannot read thumbnail"); $this->addError(JText::sprintf("AG_CANNOT_READ_THUMBNAIL", $thumb_file)); } } } } /** * Generates Album Thumbs */ function Album_generateThumb($AG_parent_folder, $AG_img) { if (($this->params['thumbWidth'] == 0) || ($this->params['thumbHeight'] == 0)) { $this->adderror(JText::_("AG_CANNOT_CREATE_THUMBNAILS_WIDTH_AND_HEIGHT_MUST_BE_GREATER_THEN_0")); return; } $imagesFolderPhysicalPath = $this->imagesFolderPhysicalPath . $AG_parent_folder . DS; $thumbsFolderPhysicalPath = $this->thumbsFolderPhysicalPath . $AG_parent_folder . DS; //Create directory in thumbs for gallery if (!file_exists($thumbsFolderPhysicalPath)) { JFolder::create($thumbsFolderPhysicalPath, 0755); } //Add's index.html to thumbs folder if (!file_exists($thumbsFolderPhysicalPath . 'index.html')) { $this->ag_indexWrite($thumbsFolderPhysicalPath . 'index.html'); } $original_file = $imagesFolderPhysicalPath . $AG_img; $thumb_file = $thumbsFolderPhysicalPath . $AG_img; if (!file_exists($thumb_file)) { $this->addError(agHelper::ag_createThumb($original_file, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } else { list($imagewidth, $imageheight) = getimagesize($thumb_file); switch ($this->params['thumbAutoSize']) { case "none": if ($imageheight != $this->params['thumbHeight'] || $imagewidth != $this->params['thumbWidth']) { $this->addError(agHelper::ag_createThumb($original_file, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; case "height": if ($imagewidth != $this->params['thumbWidth']) { $this->addError(agHelper::ag_createThumb($original_file, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; case "width": if ($imageheight != $this->params['thumbHeight']) { $this->addError(agHelper::ag_createThumb($original_file, $thumb_file, $this->params['thumbWidth'], $this->params['thumbHeight'], $this->params['thumbAutoSize'])); } break; } } // ERROR - Invalid image if (!file_exists($thumb_file)) { //$this->addError("Cannot read thumbnail"); $this->addError(JText::sprintf("AG_CANNOT_READ_THUMBNAIL", $thumb_file)); } } /** * Returns error html */ function writeErrors() { $errors = ""; $osVersion = $this->ag_get_os_($_SERVER['HTTP_USER_AGENT']); $phpVersion = phpversion(); if (isset($this->errors)) { foreach ($this->errors as $key => $value) { $errors.='
' . $value . '
Admiror Gallery: ' . AG_VERSION . '
Server OS:' . $_SERVER['SERVER_SOFTWARE'] . '
Client OS:' . $osVersion . '
PHP:' . $phpVersion . '
' . "\n"; } unset($this->errors); } return $errors; } /** * Breadcrump Support * Author: Lee Anderson * Authors e-mail: landerson@atlas-tech.com */ function writeBreadcrum() { $folderNames = str_replace('//', '/', $this->imagesFolderName); $albumName = explode("/", $folderNames); $folderNumber = count($albumName) - 1; $linkFolderName = ''; for ($i = 0; $i <= $folderNumber; $i++) { $linkFolderName .= $albumName[$i] . '/'; $linkFolderName = str_replace('//', '/', $linkFolderName); if ($albumName[$i] != '' && $i != 0) { $this->events['name'] = $albumName[$i]; $link = 'Javascript: AG_form_submit_' . $this->articleID . '(' . $this->index . ',1,\'' . $linkFolderName . '\');'; $mainframe = JFactory::getApplication(); $document = JFactory::getDocument(); $pathway = $mainframe->getPathway(); $document->setTitle($this->events['name']); $pathway->addItem($this->events['name'], $link); } } } /** * Reads inline parametar if any or sets default values */ function readInlineParams() { ////setting parametars for current gallery, if there is no inline params default params are set $this->params['template'] = $this->ag_getParams("template", $this->match, $this->staticParams['template']); $this->params['thumbWidth'] = $this->ag_getParams("thumbWidth", $this->match, $this->staticParams['thumbWidth']); $this->params['thumbHeight'] = $this->ag_getParams("thumbHeight", $this->match, $this->staticParams['thumbHeight']); $this->params['thumbAutoSize'] = $this->ag_getParams("thumbAutoSize", $this->match, $this->staticParams['thumbAutoSize']); $this->params['arrange'] = $this->ag_getParams("arrange", $this->match, $this->staticParams['arrange']); $this->params['newImageTag'] = $this->ag_getParams("newImageTag", $this->match, $this->staticParams['newImageTag']); $this->params['newImageTag_days'] = $this->ag_getParams("newImageDays", $this->match, $this->staticParams['newImageTag_days']); $this->params['frameWidth'] = $this->ag_getParams("frameWidth", $this->match, $this->staticParams['frame_width']); $this->params['frameHeight'] = $this->ag_getParams("frameHeight", $this->match, $this->staticParams['frame_height']); $this->params['showSignature'] = $this->ag_getParams("showSignature", $this->match, $this->staticParams['showSignature']); $this->params['plainTextCaptions'] = $this->ag_getParams("plainTextCaptions", $this->match, $this->staticParams['plainTextCaptions']); $this->params['popupEngine'] = $this->ag_getParams("popupEngine", $this->match, $this->staticParams['popupEngine']); $this->params['backgroundColor'] = $this->ag_getParams("backgroundColor", $this->match, $this->staticParams['backgroundColor']); $this->params['foregroundColor'] = $this->ag_getParams("foregroundColor", $this->match, $this->staticParams['foregroundColor']); $this->params['highliteColor'] = $this->ag_getParams("highliteColor", $this->match, $this->staticParams['highliteColor']); // Albums Support $this->params['albumUse'] = $this->ag_getParams("albumUse", $this->match, $this->staticParams['albumUse']); // Paginations Support $this->params['paginUse'] = $this->ag_getParams("paginUse", $this->match, $this->staticParams['paginUse']); $this->params['paginImagesPerGallery'] = $this->ag_getParams("paginImagesPerGallery", $this->match, $this->staticParams['paginImagesPerGallery']); } /** * Gallery constructor, sets path values, sets document reference * @param $globalParams * @param $path * @param $sitePhysicalPath * @param $document */ function __construct($globalParams, $path, $sitePhysicalPath, $document) { $this->staticParams['thumbWidth'] = $globalParams->get('thumbWidth', 200); $this->staticParams['thumbHeight'] = $globalParams->get('thumbHeight', 120); $this->staticParams['thumbAutoSize'] = $globalParams->get('thumbAutoSize', "none"); $this->staticParams['template'] = $globalParams->get('template', 'classic'); $this->staticParams['arrange'] = $globalParams->get('arrange', 'priority'); $this->staticParams['newImageTag'] = $globalParams->get('newImageTag', true); $this->staticParams['newImageTag_days'] = $globalParams->get('newImageTag_days', '7'); $this->staticParams['frame_width'] = $globalParams->get('frame_width', false); $this->staticParams['frame_height'] = $globalParams->get('frame_height', false); $this->staticParams['showSignature'] = $globalParams->get('showSignature', true); $this->staticParams['plainTextCaptions'] = $globalParams->get('plainTextCaptions', true); $this->staticParams['popupEngine'] = $globalParams->get('popupEngine', 'slimbox'); $this->staticParams['usePopuEngine'] = $globalParams->get('usePopuEngine', true); $this->staticParams['ignoreError'] = $globalParams->get('ignoreError', true); $this->staticParams['ignoreAllError'] = $globalParams->get('ignoreAllError', false); $this->staticParams['rootFolder'] = $globalParams->get('rootFolder', '/images/sampledata/'); $this->staticParams['backgroundColor'] = $globalParams->get('backgroundColor', 'ffffff'); $this->staticParams['foregroundColor'] = $globalParams->get('foregroundColor', '808080'); $this->staticParams['highliteColor'] = $globalParams->get('highliteColor', 'fea804'); $this->popupEngine = new agPopup(); $this->params = $this->staticParams; if (substr($path, -1) == "/") $path = substr($path, 0, -1); $this->sitePath = $path; $this->sitePhysicalPath = $sitePhysicalPath; $this->thumbsFolderPhysicalPath = $sitePhysicalPath . PLUGIN_BASE_PATH . 'thumbs' . DS; $this->imagesFolderPhysicalPath = $sitePhysicalPath . $this->params["rootFolder"]; $this->cleanThumbsFolder(); $this->doc = $document; $this->loadCSS('AdmirorGallery.css'); //$this->errors = new agErrors(); // Album Support $this->staticParams['albumUse'] = $globalParams->get('albumUse', true); // Paginations Support $this->staticParams['paginUse'] = $globalParams->get('paginUse', true); $this->staticParams['paginImagesPerGallery'] = $globalParams->get('paginImagesPerGallery', 10); } //Constructor backward compatibility with PHP4 function agGallery($globalParams, $path, $sitePhysicalPath, $document) { $this->__construct($globalParams, $path, $sitePhysicalPath, $document); } //************************************************************************** // END Gallery Functions // //************************************************************************** } ?> PKu>\F˩ArtxContent.phpnuW+APKu>\QK` ` ArtxContentListItem.phpnuW+APKu>\= llArtxContentArticleBase.phpnuW+APKu>\) 8%.htaccessnuW+APKu>\Gʿoo%ArtxContentItem.phpnuW+APKu>\R$QQ.ArtxContentFeaturedArticle.phpnuW+APKu>\gA3ArtxContentArchivedArticle.phpnuW+APKu>\:ak9ArtxContentSingleArticle.phpnuW+APKu>\f&|  qLArtxContentCategoryArticle.phpnuW+APKu>\5v&v& PArtxPage.phpnuW+APK>\w8lff{wabstractconfig.phpnuW+APK>\1k+϶!! #download.phpnuW+APK>\_1_ view.phpnuW+APK>\gEKcontroller.phpnuW+APK>\+dLLstorage/file.phpnuW+APK>\1storage/index.htmlnuW+APK>\)sstorage/.htaccessnuW+APK>\? 3storage/component.phpnuW+APK>\ǘ[77=storage/storage.phpnuW+APK>\8\ inihelper.phpnuW+APK>\?$$updatefetch.phpnuW+APK>\=ee *model.phpnuW+APK>\ j@index.htmlnuW+APK>\)@tmpl/.htaccessnuW+APK>\.aAtmpl/install.phpnuW+APK>\Etmpl/index.htmlnuW+APK>\.gYEtmpl/overview.phpnuW+APK>\5FYYVtmpl/startupdate.phpnuW+APK>\ g,, ]xmlslurp.phpnuW+APK+?\R ~DetailLevel.class.phpnuW+APK+?\%eeDocStatus.class.phpnuW+APK+?\xJiBaseResult.class.phpnuW+APK+?\ Y DynamicSoapClient.class.phpnuW+APK+?\ExemptionCertificate.class.phpnuW+APK+?\*SJJGetTaxHistoryResult.class.phpnuW+APK+?\$uH<<PostTaxResult.class.phpnuW+APK+?\\!ApplyPaymentRequest.class.phpnuW+APK+?\jV[[ValidateRequest.class.phpnuW+APK+?\8`? ? Customer.class.phpnuW+APK+?\9AddressType.class.phpnuW+APK+?\ڇTaxOverrideType.class.phpnuW+APK+?\R R Message.class.phpnuW+APK+?\릵BH JurisdictionType.class.phpnuW+APK+?\}DocumentType.class.phpnuW+APK+?\NHDAddCustomerRequest.class.phpnuW+APK+?\x"iiApplyPaymentResult.class.phpnuW+APK+?\ĩKc TaxRequest.class.phpnuW+APK+?\"Xd2GetTaxResult.class.phpnuW+APK+?\  "tPGetExemptionCertificates.class.phpnuW+APK+?\XׯSATConfig.class.phpnuW+APK+?\  \CancelTaxRequest.class.phpnuW+APK+?\ !$!$cAvaCertSvc.class.phpnuW+APK+?\zmP  JTaxType.class.phpnuW+APK+?\JSeverityLevel.class.phpnuW+APK+?\cxH66PingResult.class.phpnuW+APK+?\| > >jGetTaxRequest.class.phpnuW+APK+?\*-.y y SearchTaxHistoryResult.class.phpnuW+APK+?\`3::Jurisdiction.class.phpnuW+APK+?\$EAvalaraSoapClient.class.phpnuW+APK+?\mCertificateUsage.class.phpnuW+APK+?\IC C CancelCode.class.phpnuW+APK+?\ YCommitTaxRequest.class.phpnuW+APK+?\3AdjustTaxResult.class.phpnuW+APK+?\]eDDInitiateExemptCert.class.phpnuW+APK+?\ M(' GetExemptionCertificatesResult.class.phpnuW+APK+?\h#IsAuthorizedResult.class.phpnuW+APK+?\gp+CommunicationMode.class.phpnuW+APK+?\i844 p.wsdl/Tax.wsdlnuW+APK+?\H5H5"wsdl/Address.wsdlnuW+APK+?\)jXwsdl/.htaccessnuW+APK+?\V'Ywsdl/index.htmlnuW+APK+?\5=uuYwsdl/BatchSvc.wsdlnuW+APK+?\v$$Gwsdl/AvaCertSvc.wsdlnuW+APK+?\\PiXXWRequestType.class.phpnuW+APK+?\{\BBL\CommitTaxResult.class.phpnuW+APK+?\=ͮ`Enum.class.phpnuW+APK+?\%mcTaxOverride.class.phpnuW+APK+?\ iiTextCase.class.phpnuW+APK+?\DIXmValidateResult.class.phpnuW+APK+?\;"TuInitiateExemptCertResult.class.phpnuW+APK+?\c\\bxServiceMode.class.phpnuW+APK+?\Ql l ~TaxLine.class.phpnuW+APK+?\tѝReviewStatus.class.phpnuW+APK+?\l00#InitiateExemptCertRequest.class.phpnuW+APK+?\BatchSvc/AuditMessage.class.phpnuW+APK+?\)?BatchSvc/.htaccessnuW+APK+?\HCBatchSvc/AvaTaxBatchSvc.phpnuW+APK+?\WE  ϠBatchSvc/BatchDelete.class.phpnuW+APK+?\#w(BatchSvc/BatchSave.class.phpnuW+APK+?\m::;BatchSvc/BatchSvc.class.phpnuW+APK+?\<֩ BatchSvc/SeverityLevel.class.phpnuW+APK+?\EE'BatchSvc/IsAuthorizedResponse.class.phpnuW+APK+?\ŠY Y UBatchSvc/Batch.class.phpnuW+APK+?\NN%BatchSvc/BatchProcessResult.class.phpnuW+APK+?\GBatchSvc/BatchFile.class.phpnuW+APK+?\]  !vBatchSvc/BatchFileFetch.class.phpnuW+APK+?\.g'BatchSvc/BatchFileFetchResult.class.phpnuW+APK+?\@z&BatchSvc/BatchFileSaveResult.class.phpnuW+APK+?\1< cBatchSvc/BatchFileSave.class.phpnuW+APK+?\X&BatchSvc/BatchProcessRequest.class.phpnuW+APK+?\r!BatchSvc/Message.class.phpnuW+APK+?\/BatchSvc/Ping.class.phpnuW+APK+?\&;HYY)!BatchSvc/BatchFileFetchResponse.class.phpnuW+APK+?\OEE'BatchSvc/BatchProcessResponse.class.phpnuW+APK+?\W*oBatchSvc/PingResponse.class.phpnuW+APK+?\pUOO(BatchSvc/BatchFileSaveResponse.class.phpnuW+APK+?\h ZBatchSvc/FilterRequest.class.phpnuW+APK+?\Lu''$qBatchSvc/BatchSaveResponse.class.phpnuW+APK+?\;-BBBatchSvc/DeleteResult.class.phpnuW+APK+?\"}BatchSvc/BatchFileDelete.class.phpnuW+APK+?\]Q"BatchSvc/BatchSaveResult.class.phpnuW+APK+?\ɣ,(( BatchSvc/PingResult.class.phpnuW+APK+?\ BatchSvc/BatchFetch.class.phpnuW+APK+?\f]11% BatchSvc/BatchFetchResponse.class.phpnuW+APK+?\{TBatchSvc/IsAuthorized.class.phpnuW+APK+?\ Ok#BatchSvc/BatchFetchResult.class.phpnuW+APK+?\4fHH*BatchSvc/BatchFileDeleteResponse.class.phpnuW+APK+?\pTT@BatchSvc/FetchRequest.class.phpnuW+APK+?\-*BatchSvc/FilterResult.class.phpnuW+APK+?\ח==BatchSvc/BatchProcess.class.phpnuW+APK+?\Z%"BatchSvc/IsAuthorizedResult.class.phpnuW+APK+?\\ %BatchSvc/DeleteRequest.class.phpnuW+APK+?\ ޽(BatchSvc/Profile.class.phpnuW+APK+?\V,BatchSvc/index.htmlnuW+APK+?\#-BatchSvc/BaseResult.class.phpnuW+APK+?\wj_**&0BatchSvc/BatchDeleteResponse.class.phpnuW+APK+?\(u CCr3CancelTaxResult.class.phpnuW+APK+?\3\7AddCustomerResult.class.phpnuW+APK+?\| #9ReconcileTaxHistoryResult.class.phpnuW+APK+?\j44ETaxServiceSoap.class.phpnuW+APK+?\9HmmzATObject.class.phpnuW+APK+?\l}=2=2uValidAddress.class.phpnuW+APK+?\V=AdjustTaxRequest.class.phpnuW+APK+?\>pܭ[AddCustomer.class.phpnuW+APK+?\jNNMGetTaxHistoryRequest.class.phpnuW+APK+?\"~WWAddress.class.phpnuW+APK+?\vzPostTaxRequest.class.phpnuW+APK+?\!=rCertificateStatus.class.phpnuW+APK+?\xBډBoundaryLevel.class.phpnuW+APK+?\R|eAVObject.class.phpnuW+APK+?\QALine.class.phpnuW+APK+?\`Zp44) GetExemptionCertificatesRequest.class.phpnuW+APK+?\BmmAddressServiceSoap.class.phpnuW+APK+?\P;_ _ $]*ReconcileTaxHistoryRequest.class.phpnuW+APK+?\<~4TaxDetail.class.phpnuW+APK-?\x66pDavatar.galleria.phpnuW+APK-?\Havatar.image.phpnuW+APK.?\ 8D8D QagHelper.phpnuW+APK.?\CVX44 =agPopup.phpnuW+APK.?\!||jquery.scroll.js.phpnuW+APK.?\aK33 lagGallery.phpnuW+APK24)