VirtueMart
3.2.14.9808
|
Public Member Functions | |
__construct () | |
asteriskPad ($str, $display_length, $reversed=FALSE) | |
Static Public Member Functions | |
static | renderGuiList ($idList, $table, $name, $view, $tableXref=false, $tableSecondaryKey=false, $quantity=3, $translate=true) |
static | renderVendorList ($vendorId=false, $name= 'virtuemart_vendor_id') |
static | renderVendorFullVendorList ($vendorId, $multiple=false, $name= 'virtuemart_vendor_id') |
static | renderShopperGroupList ($shopperGroupId=0, $multiple=TRUE, $name='virtuemart_shoppergroup_id', $select_attribute='COM_VIRTUEMART_DRDOWN_AVA2ALL', $attrs=array()) |
static | renderManufacturerList ($manufacturerId=0, $multiple=FALSE, $name= 'virtuemart_manufacturer_id') |
static | renderTaxList ($selected, $name= 'product_tax_id', $class= '') |
static | renderTemplateList ($defaultText=0, $defaultOption=TRUE) |
static | renderOrderingList ($table, $fieldname, $selected, $where='', $orderingField= 'ordering') |
static | getWeightUnit () |
static | renderWeightUnit ($name) |
static | renderWeightUnitList ($name, $selected) |
static | renderUnitIsoList ($name, $selected) |
static | convertWeigthUnit ($value, $from, $to) |
static | convertWeightUnit ($value, $from, $to) |
static | convertDimensionUnit ($value, $from, $to) |
static | renderLWHUnitList ($name, $selected) |
static | generateStAddressList ($view, $userModel, $task) |
static | renderVendorAddress ($vendorId, $lineSeparator="<br />", $skips=array('name','username','email','agreed')) |
static | categoryListTree ($selectedCategories=array(), $cid=0, $level=0, $disabledFields=array()) |
static | categoryListTreeLoop ($selectedCategories=array(), $cid=0, $level=0, $disabledFields=array(), $isSite, $vendorId, $vmlang, $categoryParentName='') |
static | getCountryByID ($id, $fld= 'country_name') |
static | getCountryIDByName ($name) |
static | getStateByID ($id, $fld= 'state_name') |
static | getStateIDByName ($name) |
static | getTaxByID ($id) |
static | getCurrencyByID ($id, $fld= 'currency_name') |
static | getCurrencyIDByName ($name) |
static | getEnumeratedCategories ($onlyPublished=TRUE, $withParentId=FALSE, $parentId=0, $name= '', $attribs= '', $key= '', $text= '', $selected=NULL) |
static | getOrderStatusName ($_code) |
static | InvoiceNumberReserved ($invoice_number) |
static | listDays ($list_name, $selected=FALSE, $start=NULL, $end=NULL) |
static | listMonths ($list_name, $selected=FALSE, $attr= '', $format='F') |
static | listYears ($list_name, $selected=FALSE, $start=NULL, $end=NULL, $attr= '', $format='Y') |
static | getValidProductFilterArray () |
static | display3rdInfo ($title, $intro, $developer, $logolink, $contactlink, $manlink, $width='96px', $height='66px', $linesHeight='33px') |
static | displayLinkButton ($title, $link, $bgrndImage, $width, $height, $linesHeight, $additionalStyles='') |
static | generateRandomString ($length=10) |
static | checkSafePath ($sPath=0) |
static | getInvoiceFolderName () |
static | getInvoicePath ($safePath=null) |
static | getUpperJoomlaPath () |
static | getSuggestedSafePath () |
static | renderProductShopperList ($productShoppers) |
static | renderMetaEdit ($obj) |
static | getAvailabilityIconUrl ($vmtemplate) |
static | getClientIP () |
static | validateIp ($ip) |
Static Public Attributes | |
static | $counter = 0 |
static | $categoryTree = array() |
ShopFunctions::__construct | ( | ) |
Contructor
ShopFunctions::asteriskPad | ( | $str, | |
$display_length, | |||
$reversed = FALSE |
|||
) |
Return $str with all but $display_length at the end as asterisks.
public
string | $str | The string to mask |
int | $display_length | The length at the end of the string that is NOT masked |
boolean | $reversed | When true, masks the end. Masks from the beginning at default |
|
static |
|
static |
Creates structured option fields for all categories
array | $selectedCategories | All category IDs that will be pre-selected |
int | $cid | Internally used for recursion |
int | $level | Internally used for recursion |
|
static |
|
static |
Convert Metric Unit
|
static |
Convert Weight Unit
|
static |
typo problem with the function name. We must keep the other one for compatibility purposes
$value | |
$from | |
$to |
|
static |
Returns developer information for a plugin Returns a 2 link with background image, should look like a button to open contact page or manual
$title | string Title of the plugin |
$intro | string Intro text |
$logolink | url Url to logo images, use here the path and then as image names contact.png and manual.png |
$developer | string Name of the developer/company |
$contactlink | url Url to the contact form of the developer for support |
$manlink | url URL to the manual for this specific plugin |
|
static |
|
static |
|
static |
This generates the list when the user have different ST addresses saved
|
static |
|
static |
get the Client IP, even if a reverse proxy or similar is used
|
static |
Return the countryname or code of a given countryID
int | $id | Country ID |
char | $fld | Field to return: country_name (default), country_2_code or country_3_code. |
|
static |
Return the virtuemart_country_id of a given country name
string | $name | Country name (can be country_name or country_3_code or country_2_code ) |
|
static |
Return any field from table '#__virtuemart_currencies'
int | $id | Currency ID |
char | $fld | Field from table '#__virtuemart_currencies' to return: currency_name (default), currency_code_2, currency_code_3 etc. |
|
static |
Return the currencyID of a given Currency name This function becomes dangerous if there is a currency name with 3 letters
string | $name | Currency name |
|
static |
Print a select-list with enumerated categories
boolean | $onlyPublished | Show only published categories? |
boolean | $withParentId | Keep in mind $parentId param? |
integer | $parentId | Show only its childs |
string | $attribs | HTML attributes for the list |
|
static |
|
static |
|
static |
proxy function going to be
char | $_code | Order status code |
|
static |
Return the statename or code of a given virtuemart_state_id
int | $id | State ID |
char | $fld | Field to return: state_name (default), state_2_code or state_3_code. |
|
static |
Return the stateID of a given state name
string | $name | Country name |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns all the weight unit
|
static |
|
static |
Creates an drop-down list with numbers from 1 to 31 or of the selected range, dont use within virtuemart. It is just meant for paymentmethods
string | $list_name | The name of the select element |
string | $selected_item | The pre-selected value |
|
static |
Creates a Drop-Down List for the 12 months in a year
string | $list_name | The name for the select element |
string | $selected_item | The pre-selected value |
|
static |
Creates an drop-down list with years of the selected range or of the next 11 years
string | $list_name | The name of the select element |
string | $selected_item | The pre-selected value |
|
static |
Builds an enlist for information (not chooseable)
array | $idList | ids |
string | $table | vmTable to use |
string | $name | fieldname for the name |
string | $view | view for the links |
bool | $tableXref | the xref table |
bool | $tableSecondaryKey | the fieldname of the xref table |
int | $quantity | |
bool | $translate |
|
static |
Renders the list for the Length, Width, Height Unit
|
static |
Renders the list of Manufacturers
|
static |
|
static |
|
static |
|
static |
Creates a Drop Down list of available Shopper Groups
int | $shopperGroupId | the shopper group to pre-select |
bool | $multiple | if the select list should allow multiple selections |
|
static |
Renders the list for the tax rules
|
static |
Creates the chooseable template list
string | defaultText Text for the empty option |
boolean | defaultOption you can supress the empty otion setting this to false return array of Template objects |
|
static |
|
static |
$vendorId | ||
string | $lineSeparator | |
array | $skips |
|
static |
|
static |
Creates a Drop Down list of available Vendors
int | $virtuemart_shoppergroup_id | the shopper group to pre-select |
bool | $multiple | if the select list should allow multiple selections |
|
static |
Renders the string for the
|
static |
Renders the list for the Weight Unit
|
static |
Ensures an ip address is both a valid IP and does not fall within a private network range.
|
static |
|
static |