zentaobiz.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?php
  2. /**
  3. * @param string $appID
  4. */
  5. public function editMiniProgram($appID)
  6. {
  7. return $this->loadExtension('zentaobiz')->editMiniProgram($appID);
  8. }
  9. /**
  10. * @param string $appID
  11. */
  12. public function createZtAppJson($appID)
  13. {
  14. return $this->loadExtension('zentaobiz')->createZtAppJson($appID);
  15. }
  16. /**
  17. * @param string $file
  18. */
  19. public function createZtAppZip($file)
  20. {
  21. return $this->loadExtension('zentaobiz')->createZtAppZip($file);
  22. }
  23. /**
  24. * @return bool|string
  25. * @param string $appID
  26. * @param string $deleted
  27. */
  28. public function deleteMiniProgram($appID, $deleted = '1')
  29. {
  30. return $this->loadExtension('zentaobiz')->deleteMiniProgram($appID, $deleted);
  31. }
  32. /**
  33. * @return int|bool
  34. * @param object $knowledge
  35. * @param bool $skipUpdateExternal
  36. */
  37. public function createKnowledge($knowledge, $skipUpdateExternal = false)
  38. {
  39. return $this->loadExtension('zentaobiz')->createKnowledge($knowledge, $skipUpdateExternal);
  40. }
  41. /**
  42. * @param object $knowledge
  43. */
  44. public function updateExternalKnowledge($knowledge, $knowledgeLib = null)
  45. {
  46. return $this->loadExtension('zentaobiz')->updateExternalKnowledge($knowledge, $knowledgeLib);
  47. }
  48. /**
  49. * @param object $knowledge
  50. * @param int $id
  51. */
  52. public function updateKnowledge($id, $knowledge)
  53. {
  54. return $this->loadExtension('zentaobiz')->updateKnowledge($id, $knowledge);
  55. }
  56. /**
  57. * @return object|false
  58. * @param int $id
  59. */
  60. public function getKnowledgeItemByID($id)
  61. {
  62. return $this->loadExtension('zentaobiz')->getKnowledgeItemByID($id);
  63. }
  64. /**
  65. * @param bool|string $skipUpdateExternal
  66. * @param object $data
  67. * @param int $id
  68. */
  69. public function updateKnowledgeItem($id, $data, $skipUpdateExternal = false)
  70. {
  71. return $this->loadExtension('zentaobiz')->updateKnowledgeItem($id, $data, $skipUpdateExternal);
  72. }
  73. /**
  74. * @param bool|string $skipUpdateExternal
  75. * @return object|false
  76. * @param object $knowledge
  77. */
  78. public function updateKnowledgeItemFromSource($knowledge, $skipUpdateExternal = 'no')
  79. {
  80. return $this->loadExtension('zentaobiz')->updateKnowledgeItemFromSource($knowledge, $skipUpdateExternal);
  81. }
  82. /**
  83. * @return object|false
  84. * @param string $objectType
  85. * @param int $objectID
  86. */
  87. public function getKnowledgeObjectByID($objectType, $objectID)
  88. {
  89. return $this->loadExtension('zentaobiz')->getKnowledgeObjectByID($objectType, $objectID);
  90. }
  91. /**
  92. * @param int $id
  93. */
  94. public function deleteKnowledgeItem($id)
  95. {
  96. return $this->loadExtension('zentaobiz')->deleteKnowledgeItem($id);
  97. }
  98. /**
  99. * @param object|bool|null $knowledgeLib
  100. */
  101. public function checkKnowledgeLibPriv($knowledgeLib)
  102. {
  103. return $this->loadExtension('zentaobiz')->checkKnowledgeLibPriv($knowledgeLib);
  104. }
  105. /**
  106. * @param string $type
  107. * @param string $category
  108. * @param string $published
  109. * @param string $orderBy
  110. */
  111. public function getKnowledgeLibs($type = 'my', $category = '', $published = '', $orderBy = 'id_desc', $pager = null)
  112. {
  113. return $this->loadExtension('zentaobiz')->getKnowledgeLibs($type, $category, $published, $orderBy, $pager);
  114. }
  115. /**
  116. * @return object|false
  117. * @param int $id
  118. */
  119. public function getKnowledgeLibByID($id)
  120. {
  121. return $this->loadExtension('zentaobiz')->getKnowledgeLibByID($id);
  122. }
  123. /**
  124. * @param mixed[] $ids
  125. */
  126. public function getKnowledgeLibsByIDs($ids)
  127. {
  128. return $this->loadExtension('zentaobiz')->getKnowledgeLibsByIDs($ids);
  129. }
  130. /**
  131. * @return object
  132. * @param int $libID
  133. */
  134. public function getKnowledgeLibStats($libID)
  135. {
  136. return $this->loadExtension('zentaobiz')->getKnowledgeLibStats($libID);
  137. }
  138. /**
  139. * @param int $libID
  140. */
  141. public function getTextFileItems($libID)
  142. {
  143. return $this->loadExtension('zentaobiz')->getTextFileItems($libID);
  144. }
  145. /**
  146. * @param int $id
  147. */
  148. public function publishKnowledgeLib($id)
  149. {
  150. return $this->loadExtension('zentaobiz')->publishKnowledgeLib($id);
  151. }
  152. /**
  153. * @param int $id
  154. */
  155. public function unpublishKnowledgeLib($id)
  156. {
  157. return $this->loadExtension('zentaobiz')->unpublishKnowledgeLib($id);
  158. }
  159. /**
  160. * @param int $id
  161. */
  162. public function deleteKnowledgeLib($id)
  163. {
  164. return $this->loadExtension('zentaobiz')->deleteKnowledgeLib($id);
  165. }
  166. /**
  167. * @param string $type
  168. * @param int $queryID
  169. * @param string $actionURL
  170. */
  171. public function buildKnowledgeLibSearchForm($type, $queryID, $actionURL)
  172. {
  173. $this->loadExtension('zentaobiz')->buildKnowledgeLibSearchForm($type, $queryID, $actionURL);
  174. }
  175. /**
  176. * @param string $type
  177. * @param int $queryID
  178. * @param string $orderBy
  179. */
  180. public function getKnowledgeLibsBySearch($type, $queryID, $orderBy, $pager = null)
  181. {
  182. return $this->loadExtension('zentaobiz')->getKnowledgeLibsBySearch($type, $queryID, $orderBy, $pager);
  183. }
  184. /**
  185. * @return object
  186. * @param string $type
  187. * @param string $category
  188. * @param string $published
  189. * @param string $orderBy
  190. * @param int $param
  191. * @param int $recTotal
  192. * @param int $recPerPage
  193. * @param int $pageID
  194. */
  195. public function browseKnowledgeLib($type, $category, $published, $orderBy, $param, $recTotal = 0, $recPerPage = 20, $pageID = 1)
  196. {
  197. return $this->loadExtension('zentaobiz')->browseKnowledgeLib($type, $category, $published, $orderBy, $param, $recTotal, $recPerPage, $pageID);
  198. }
  199. /**
  200. * @return int|bool
  201. * @param object $knowledgeLib
  202. * @param string $actionType
  203. */
  204. public function createKnowledgeLib($knowledgeLib, $actionType = 'created')
  205. {
  206. return $this->loadExtension('zentaobiz')->createKnowledgeLib($knowledgeLib, $actionType);
  207. }
  208. /**
  209. * @param object $knowledgeLib
  210. */
  211. public function ensureExternalKnowledgeLib($knowledgeLib)
  212. {
  213. return $this->loadExtension('zentaobiz')->ensureExternalKnowledgeLib($knowledgeLib);
  214. }
  215. /**
  216. * @param object $knowledgeLib
  217. * @param int $id
  218. */
  219. public function editKnowledgeLib($id, $knowledgeLib)
  220. {
  221. return $this->loadExtension('zentaobiz')->editKnowledgeLib($id, $knowledgeLib);
  222. }
  223. /**
  224. * @return int|bool
  225. * @param object $knowledgeLib
  226. */
  227. public function importFromDoc($knowledgeLib)
  228. {
  229. return $this->loadExtension('zentaobiz')->importFromDoc($knowledgeLib);
  230. }
  231. /**
  232. * @return int|bool
  233. * @param object $knowledgeLib
  234. */
  235. public function importFromAsset($knowledgeLib)
  236. {
  237. return $this->loadExtension('zentaobiz')->importFromAsset($knowledgeLib);
  238. }
  239. /**
  240. * @param string $objectType
  241. */
  242. public function buildKnowledgeObjectData($objectType, $source)
  243. {
  244. return $this->loadExtension('zentaobiz')->buildKnowledgeObjectData($objectType, $source);
  245. }
  246. /**
  247. * @param string $objectType
  248. */
  249. public function prepareMarkdownLangMap($objectType)
  250. {
  251. return $this->loadExtension('zentaobiz')->prepareMarkdownLangMap($objectType);
  252. }
  253. /**
  254. * @param int $libID
  255. * @param string $type
  256. * @param string $objectType
  257. * @param string $orderBy
  258. */
  259. public function getKnowledgeItems($libID, $type, $objectType, $orderBy = 'id_desc', $pager = null)
  260. {
  261. return $this->loadExtension('zentaobiz')->getKnowledgeItems($libID, $type, $objectType, $orderBy, $pager);
  262. }
  263. /**
  264. * @param int $libID
  265. * @param string $objectType
  266. */
  267. public function getKnowledgeItemsByObjectType($libID, $objectType, $pager = null)
  268. {
  269. return $this->loadExtension('zentaobiz')->getKnowledgeItemsByObjectType($libID, $objectType, $pager);
  270. }
  271. /**
  272. * @param object $knowledge
  273. */
  274. public function isKnowledgeNeedSync($knowledge)
  275. {
  276. return $this->loadExtension('zentaobiz')->isKnowledgeNeedSync($knowledge);
  277. }
  278. /**
  279. * @param int $lib
  280. * @param string $objectType
  281. * @param mixed[] $objectIdList
  282. */
  283. public function getKnowledgeByObjectIdList($lib, $objectType, $objectIdList)
  284. {
  285. return $this->loadExtension('zentaobiz')->getKnowledgeByObjectIdList($lib, $objectType, $objectIdList);
  286. }
  287. /**
  288. * @param mixed[] $idList
  289. */
  290. public function batchDeleteKnowledgeItem($idList)
  291. {
  292. return $this->loadExtension('zentaobiz')->batchDeleteKnowledgeItem($idList);
  293. }
  294. /**
  295. * @param string $objectType
  296. */
  297. public function getKnowledgeObjectCols($objectType)
  298. {
  299. return $this->loadExtension('zentaobiz')->getKnowledgeObjectCols($objectType);
  300. }
  301. /**
  302. * @param mixed[] $items
  303. */
  304. public function prepareReleaseKnowledgeImportList($items)
  305. {
  306. return $this->loadExtension('zentaobiz')->prepareReleaseKnowledgeImportList($items);
  307. }
  308. /**
  309. * @param object $knowledgeLib
  310. */
  311. public function checkExistKnowledgeLib($knowledgeLib)
  312. {
  313. return $this->loadExtension('zentaobiz')->checkExistKnowledgeLib($knowledgeLib);
  314. }