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


PHP Project::get_goals方法代码示例

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


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

示例1: show

 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $data['colors'] = array('red', 'yellow', 'aqua', 'blue', 'light-blue', 'green', 'navy', 'teal', 'olive', 'lime', 'orange', 'fuchsia', 'purple', 'maroon', 'black', 'red-active', 'yellow-active', 'aqua-active', 'blue-active', 'light-blue-active', 'green-active', 'navy-active', 'teal-active', 'olive-active', 'lime-active', 'orange-active', 'fuchsia-active', 'purple-active', 'maroon-active', 'black-active');
     $data['card'] = $card = Card::get_card_result($id);
     if ($card) {
         $data['project'] = Project::find($card->project_id);
         $data['goals'] = Project::get_goals($card->project_id);
         $data['campgoals'] = Card::get_campgoals($id);
         $data['plannedcampgoals'] = Card::get_panned_campgoals($id);
         $data['partner'] = Card::get_partner($id, $card->sector_id);
         $data['partners'] = Card::get_partners($id, $card->sector_id);
         $data['camps'] = Camp::where('card_id', $id)->get()->toArray();
         $data['selectedpartner'] = PartnerCards::where('card_id', $id)->first();
         $data['cardtimelines'] = Timeline::getFinalCardTimeline($id, 2);
         $data['campcreatebtn'] = Permission::hasPermission('camps.create');
         $data['campeditbtn'] = Permission::hasPermission('camps.edit');
         $data['campdeletebtn'] = Permission::hasPermission('camps.delete');
         $data['campimportbtn'] = Permission::hasPermission('camps.import');
         $data['taskimportbtn'] = Permission::hasPermission('tasks.import');
         $data['taskeditbtn'] = Permission::hasPermission('tasks.edit');
         $data['taskcreatebtn'] = Permission::hasPermission('tasks.create');
         $data['taskdeletebtn'] = Permission::hasPermission('tasks.delete');
         $data['tasklistbtn'] = Permission::hasPermission('tasks.index');
         $data['campviewbtn'] = Permission::hasPermission('camps.show');
         $data['tasks'] = Task::all();
         return view('cards.view', $data);
     } else {
         Session::flash('danger', Lang::get('ruban.card.notfound'));
         return Redirect::route('ruban.cards.index');
     }
 }
开发者ID:mahitiinfo,项目名称:rubanbridge,代码行数:37,代码来源:CardController.php

示例2: show

 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $data['project'] = $project = Project::get_project($id);
     $data['colors'] = array('red', 'yellow', 'aqua', 'blue', 'light-blue', 'green', 'navy', 'teal', 'olive', 'lime', 'orange', 'fuchsia', 'purple', 'maroon', 'black', 'red-active', 'yellow-active', 'aqua-active', 'blue-active', 'light-blue-active', 'green-active', 'navy-active', 'teal-active', 'olive-active', 'lime-active', 'orange-active', 'fuchsia-active', 'purple-active', 'maroon-active', 'black-active');
     if ($project) {
         $data['goals'] = Project::get_goals($id);
         $data['campgoals'] = Project::get_camp_goals($id);
         $data['plancampgoals'] = Project::get_camp_planned_goals($id);
         $data['cards'] = Card::where('project_id', $id)->get();
         $data['timelines'] = Timeline::getFinalTimeline($id, 1);
         return view('projects.view', $data);
     } else {
         Session::flash($this->danger, Lang::get('ruban.project.notfound'));
         return Redirect::route('ruban.projects.index');
     }
 }
开发者ID:mahitiinfo,项目名称:rubanbridge,代码行数:22,代码来源:ProjectController.php


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