Просмотр списка методов объекта php
Когда документации нет или её мало, а ide не даёт подсказок, выручает функция get_class_methods(). Передав в неё объект класса, она вернёт все возможные методы.
Например для заказа:
$order = \Bitrix\Sale\Order::load($orderId); print_r(get_class_methods($order));
Вернёт
Array ( [0] => getRegistryType [1] => getUfId [2] => getPrintedChecks [3] => addPrintedCheck [4] => onShipmentCollectionModify [5] => resetData [6] => setBasket [7] => appendBasket [8] => getShipmentCollection [9] => getTradeBindingCollection [10] => getPaymentCollection [11] => loadShipmentCollection [12] => loadPaymentCollection [13] => isShipped [14] => onPaymentCollectionModify [15] => onBeforeBasketItemDelete [16] => onBasketModify [17] => onBeforeBasketRefresh [18] => onAfterBasketRefresh [19] => applyDiscount [20] => lock [21] => unlock [22] => isLocked [23] => getLockedStatus [24] => verify [25] => getBusinessValueProviderInstance [26] => getList [27] => isChanged [28] => clearChanged [29] => getDeliveryIdList [30] => getPaySystemIdList [31] => save [32] => getDeliverySystemId [33] => getPaymentSystemId [34] => getInternalId [35] => getAvailableFields [36] => isSaveRunning [37] => getRegistryEntity [38] => create [39] => load [40] => loadByFilter [41] => loadByAccountNumber [42] => getBasket [43] => setField [44] => setFieldNoDemand [45] => getField [46] => initField [47] => getPropertyCollection [48] => loadPropertyCollection [49] => onPropertyValueCollectionModify [50] => refreshData [51] => getPersonTypeId [52] => setPersonTypeId [53] => getPrice [54] => getSumPaid [55] => getDeliveryPrice [56] => getDeliveryLocation [57] => getTaxPrice [58] => getTaxValue [59] => getDiscountPrice [60] => getCurrency [61] => getUserId [62] => getSiteId [63] => isUsedVat [64] => getVatRate [65] => getVatSum [66] => isMarked [67] => refreshVat [68] => isExternal [69] => setVatSum [70] => setVatDelivery [71] => getDateInsert [72] => getCalculateType [73] => getTax [74] => isNew [75] => resetTax [76] => isClone [77] => isPaid [78] => isAllowDelivery [79] => isDeducted [80] => isCanceled [81] => getHash [82] => getTaxLocation [83] => isMathActionOnly [84] => hasMeaningfulField [85] => clearStartField [86] => isStartField [87] => setMathActionOnly [88] => deleteNoDemand [89] => delete [90] => isAllowPay [91] => getDiscount [92] => doFinalAction [93] => createClone [94] => getSettableFields [95] => getEntityEventName [96] => getCustomizableFields [97] => getAvailableFieldsMap [98] => getAllFields [99] => getFieldsDescription [100] => setFields [101] => setFieldsNoDemand [102] => initFields [103] => getFieldValues [104] => getFields [105] => getId [106] => getClassName [107] => markFieldCustom [108] => unmarkFieldCustom [109] => isMarkedFieldCustom )
Есть вопросы или нашли ошибку? Напишите комментарий (можно без регистрации), отвечать стараюсь быстро.