本文整理汇总了PHP中Documents::getAllData方法的典型用法代码示例。如果您正苦于以下问题:PHP Documents::getAllData方法的具体用法?PHP Documents::getAllData怎么用?PHP Documents::getAllData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Documents
的用法示例。
在下文中一共展示了Documents::getAllData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getMetaData
/**
* Gets the meta data.
*
* Returns an object full of business logic/database schema type definitions
*
* Returns stdClass
* phone_types
* {id}
* id
* name
* editable
* markets
* {id}
* id
* name
* active
* currency
* email_types
* {id}
* id
* name
* address_types
* {id}
* id
* name
* states
* {id}
* id
* name
* abbrev
* country_id
* countries
* {id}
* id
* name
* can_sell
* can_enroll
* presenter_status
* {id}
* id
* name
* product_credit_types
* {id}
* id
* name
* type
* product_credit_entry_types
* {id}
* id
* name
* product_credit_status_types
* {id}
* id
* name
* order_payment_processors
* {id}
* id
* name
* languages
* {id}
* id
* name
* localize_name
* locale
*
* @return \stdClass
*/
private function _getMetaData()
{
$results = new stdClass();
require_once APPLICATION_PATH . MODEL_DIR . '/Phone_type.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Market.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Address_type.php';
require_once APPLICATION_PATH . MODEL_DIR . '/State.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Country.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Email_type.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Presenter_status.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Product_credit_types.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Product_credit_entry_types.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Product_credit_status_types.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Order_payment_processors.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Secondary_order_status.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Royalty_status.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Language.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Documents.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Presenter_account_types.php';
require_once APPLICATION_PATH . MODEL_DIR . '/Presenter_us_tax_data.php';
//phone types
$phone_type = new Phone_type();
$results->phone_types = $phone_type->getAllData();
//presenter_us_tax_data
$presenter_us_tax_data = new Presenter_us_tax_data();
//$results->presenter_us_tax_data = $presenter_us_tax_data->getAllData();
//markets
$market = new Market();
$results->markets = $market->getAllData();
//email types
$email_types = new Email_type();
$results->email_types = $email_types->getAllData();
//address types
//.........这里部分代码省略.........