当前位置: 首页>>代码示例>>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;未经允许,请勿转载。