当前位置: 首页>>代码示例>>PHP>>正文


PHP Organization::get方法代码示例

本文整理汇总了PHP中Organization::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Organization::get方法的具体用法?PHP Organization::get怎么用?PHP Organization::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Organization的用法示例。


在下文中一共展示了Organization::get方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testGetMe

 public function testGetMe()
 {
     $at = getenv("BB_ACCESS_TOKEN");
     $o = Organization::get($at);
     $this->assertInstanceOf('\\ClausConrad\\BillysBilling\\Organization', $o, 'Getting own organization returns an Organization instance.');
     $this->assertNotNull($o->id, 'Own organization has an organization ID.');
     $this->assertNotEmpty($o->id, 'Own organization has an organization ID');
 }
开发者ID:cconrad,项目名称:billysbilling-v2-php-sdk,代码行数:8,代码来源:OrganizationTest.php

示例2: PersonalRegisterForm

 public function PersonalRegisterForm()
 {
     $fields = FieldList::create(array(EmailField::create('Email', '电子邮件'), ConfirmedPasswordField::create('Password', '密码'), TextField::create('FullName', '姓名'), TextField::create('IDCard', '身份证号码'), TextField::create('Phone', '联系电话'), DropdownField::create('OrganizationID', '所属单位名称', Organization::get()->map('ID', 'company_name'))->setEmptyString('请选择')));
     $actions = FieldList::create(array(FormAction::create('doRegisterPersonal', '提交')));
     $required = RequiredFields::create(array('Email', 'Password', 'FullName', 'IDCard', 'Phone', 'OrganizationID'));
     $form = new Form($this, __FUNCTION__, $fields, $actions, $required);
     return $form;
 }
开发者ID:jallen0927,项目名称:lytech,代码行数:8,代码来源:RegisterPage_Controller.php

示例3: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $rsvps = Rsvp::where('user_id', '=', Auth::user()->id)->get();
     $organizations = Organization::get();
     $user = Auth::user();
     if (empty($user->first_name) || empty($user->last_name) || empty($user->zip)) {
         return Redirect::action('UsersController@edit', [$user->id]);
     }
     return View::make('users.index')->with('rsvps', $rsvps);
 }
开发者ID:thehelpster,项目名称:helpster,代码行数:15,代码来源:UsersController.php

示例4: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $organizations = Organization::get();
     return View::make('admin')->with('organizations', $organizations);
 }
开发者ID:alexsynarchin,项目名称:Itnk,代码行数:10,代码来源:AdminController.php

示例5: load_organizations

 public function load_organizations()
 {
     $country_id = $_POST['country_id'];
     $data = new Organization();
     if ($country_id > 0) {
         $data->where('country_id', $country_id);
     }
     $data->get();
     echo '<select name="org_id" class="form-control">';
     echo '<option value="">-- select organization --</option>';
     foreach ($data as $key => $data_item) {
         echo '<option value="' . $data_item->id . '">' . $data_item->org_name . '</option>';
     }
     echo '</select>';
 }
开发者ID:ultraauchz,项目名称:asean_cultural_mapping,代码行数:15,代码来源:organizations.php

示例6: Organization

 // Record Organization and create similar
 // Insert new organization...:
 $edited_Organization = new Organization();
 // Check that this action request is not a CSRF hacked request:
 $Session->assert_received_crumb('organization');
 // Check permission:
 $current_User->check_perm('users', 'edit', true);
 // load data from request
 if ($edited_Organization->load_from_Request()) {
     // We could load data from form without errors:
     // While inserting into DB, ID property of Organization object will be set to autogenerated ID
     // So far as we set ID manualy, we need to preserve this value
     // When assignment of wrong value will be fixed, we can skip this
     $entered_organization_id = $edited_Organization->ID;
     $DB->begin();
     $duplicated_organization_ID = $edited_Organization->dbexists('org_name', $edited_Organization->get('name'));
     if ($duplicated_organization_ID) {
         // We have a duplicate entry:
         param_error('org_name', sprintf(T_('This organization name already exists. Do you want to <a %s>edit the existing organization</a>?'), 'href="?ctrl=organizations&amp;action=edit&amp;org_ID=' . $duplicated_organization_ID . '"'));
     } else {
         // Insert in DB:
         $edited_Organization->dbinsert();
         $Messages->add(T_('New organization created.'), 'success');
     }
     $DB->commit();
     if (!param_errors_detected()) {
         // No errors
         switch ($action) {
             // What next?
             case 'create_copy':
                 // Redirect so that a reload doesn't write to the DB twice:
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:organizations.ctrl.php

示例7: all

 public function all()
 {
     $organizations = Organization::get();
     return View::make('organization.organizations')->with('organizations', $organizations);
 }
开发者ID:alexsynarchin,项目名称:Itnk,代码行数:5,代码来源:OrganizationsController.php


注:本文中的Organization::get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。