當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Documents::getAllData方法代碼示例

本文整理匯總了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
//.........這裏部分代碼省略.........
開發者ID:kameshwariv,項目名稱:testexample,代碼行數:101,代碼來源:Data.php


注:本文中的Documents::getAllData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。