так же можно попробовать заинклюдить ваш класс в самом модуле: см. скриншот
файл: local/modules/w4a.debt/lib/classes/test.php:
файл: local/modules/w4a.debt/lib/classes/test.php:
Код |
---|
<?php use W4a\Debt\Entity\ConfigTable; class CW4aDebtTest{ public static function getTableName() { return ConfigTable::getTableName(); } public static function get() { $result = ConfigTable::getList( array( 'select' => array('*') )); return $result->fetchAll(); } public static function debug($arData,$arName='$arData') { echo "<div>$arName</div>"; echo '<pre>'; print_r($arData); echo '</pre>'; } public static function getTest() { return 'CW4aDebtTest::getTest(): entity555 tableName: ' . self::getTableName(); } } |