#41 itemextendedcost api call
This commit is contained in:
parent
895eb66e9c
commit
f2db320542
@ -32,4 +32,7 @@ class api_mojotrollz extends \SYSTEM\API\api_system {
|
||||
|
||||
public static function call_tbc_action_item($id){
|
||||
return \JsonResult::toString(\SQL\TBC_ITEM::Q1(array($id),new \SQL\mangos_one_world()));}
|
||||
|
||||
public static function call_tbc_action_itemextendedcost($id){
|
||||
return \JsonResult::toString(\SQL\TBC_ITEMEXTENDEDCOST::Q1(array($id),new \SQL\mangos_one_dbc()));}
|
||||
}
|
||||
13
mojotrollz/api/qq/TBC_ITEMEXTENDEDCOST.php
Normal file
13
mojotrollz/api/qq/TBC_ITEMEXTENDEDCOST.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace SQL;
|
||||
class TBC_ITEMEXTENDEDCOST extends \SYSTEM\DB\QP {
|
||||
public static function get_class(){return \get_class();}
|
||||
public static function mysql(){return
|
||||
'SELECT itemextendedcost.*,'.
|
||||
' lower(mangos_one_dbc.itemdisplayinfo.6) as icon'.
|
||||
' FROM itemextendedcost'.
|
||||
' LEFT JOIN mangos_one_world.item_template AS item ON itemextendedcost.5 = item.entry'.
|
||||
' LEFT JOIN itemdisplayinfo ON item.displayid = itemdisplayinfo.1'.
|
||||
' WHERE itemextendedcost.1 = ?;';
|
||||
}
|
||||
}
|
||||
8
mojotrollz/sql/mangos_one_dbc.php
Normal file
8
mojotrollz/sql/mangos_one_dbc.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
namespace SQL;
|
||||
class mangos_one_dbc extends \SYSTEM\DB\DBInfoMYS {
|
||||
public function __construct() {
|
||||
parent::__construct('mangos_one_dbc', 'mojotrolls_dev', 'dsjgfasudzfsvad', '127.0.0.1');}
|
||||
}
|
||||
|
||||
|
||||
@ -11,4 +11,5 @@ REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `na
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (215, 1, 2, 1, 'article', 'id', 'STRING');
|
||||
|
||||
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (500, 0, 2, 11, 'item', 'id', 'INT');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (500, 0, 2, 11, 'item', 'id', 'INT');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (501, 0, 2, 11, 'itemextendedcost', 'id', 'INT');
|
||||
Loading…
x
Reference in New Issue
Block a user