Lines Matching refs:this

62         $this->ch= curl_init();
64 curl_setopt($this->ch, CURLOPT_RETURNTRANSFER , true);
66 curl_setopt($this->ch, CURLOPT_HTTPHEADER , array('Content-type: application/json'));
68 curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER , FALSE);
74 curl_close($this->ch);
102 $api_key_user = $this->getConf('api_key');
105 $this->api_key = $api_key_user;
111 curl_setopt($this->ch, CURLOPT_USERPWD , $this->api_key . ":");
114 $this->workspaces = $this->workspaces();
117 foreach( $this->workspaces as $work_key => $work_value ){
118 if( $work_key == $this->getConf('workspace')){
119 $this->workspace_filter['name']= $work_key;
120 $this->workspace_filter['id']=$work_value;
124 if(!empty($this->workspace_filter)){
125 $this->projects = $this->workspace_projects($this->workspace_filter['id']);
126 $this->assignees = $this->workspace_users($this->workspace_filter['id']);
127 $this->tags = $this->workspace_tags($this->workspace_filter['id']);
139 if(empty($this->workspace_filter)){
145 $text = $text . "<h2>". $this->workspace_filter['name'] . "</h2><br/>";
146 … $text = $text . "<table>".$this->render_workspaces($this->workspace_filter['id'])."</table>";
160 if( empty($this->assignees_filter)){
161 if(empty($this->projects_filter)){
163 $this->projects = $this->workspace_projects($workspace);
164 foreach( $this->projects as $project_key => $project_value ){
165 $tasks_current = $this->project_tasks($project_value);
176 foreach( $this->projects_filter as $project_key => $project_value){
177 $tasks_current = $this->project_tasks($project_value);
187 if(empty($this->projects_filter)){
189 foreach( $this->assignees_filter as $assignee){
190 foreach( $this->projects as $project_key => $project_value ){
191 $tasks_current = $this->project_tasks_assignee($project_value, $assignee);
202 foreach( $this->projects_filter as $project_key => $project_value){
203 foreach( $this->assignees_filter as $assignee){
204 $tasks_current = $this->project_tasks_assignee($project_value,$assignee);
216 if( !empty($this->tags_filter)){
217 foreach($this->tags_filter as $tag_key => $tag_value){
218 $tasks = $this->tag_filter($tag_key,$tasks);
222 if( !empty($this->strings_filter)){
223 foreach($this->strings_filter as $string){
224 $tasks = $this->string_filter($string, $tasks);
228 $tasks = $this->due_date_sort($tasks);
230this->project_find($this->projects_filters,$task['project'])."/".$task['id']."' target='_blank'>".…
284 foreach( $this->task_comments($task) as $comment_key => $comment_value){
308 foreach($this->projects as $project_key => $project_value){
310 $this->projects_filter[$project_key]=$project_value;
318 foreach($this->assignees as $assignee_key => $assignee_value){
320 $this->assignees_filter[$assignee_key]=$assignee_value;
328 foreach($this->tags as $tag_key => $tag_value){
330 $this->tags_filter[$tag_key]=$tag_value;
338 $this->strings_filter[]= $string_filter;
342 foreach($this->workspaces as $work_key => $work_value){
344 $this->workspace_filter = array( 'name' => $work_key , 'id' => $work_value );
345 $this->projects = $this->workspace_projects($this->workspace_filter['id']);
346 $this->assignees = $this->workspace_users($this->workspace_filter['id']);
347 $this->tags = $this->workspace_tags($this->workspace_filter['id']);
356 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/users/me");
357 $data_rep = json_decode(curl_exec($this->ch),true);
369 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/workspaces/".$workspace_ID."/users");
370 $data_rep = json_decode(curl_exec($this->ch),true);
380 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/workspaces/".$workspace_ID."/projects");
381 $data_rep = json_decode(curl_exec($this->ch),true);
392 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/workspaces/".$workspace_ID."/tags");
393 $data_rep = json_decode(curl_exec($this->ch),true);
404 $data_rep = $this->project_tasks($project_ID);
418 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/projects/".$project_ID."/tasks");
419 $data_rep = json_decode(curl_exec($this->ch),true);
423 $tasks[]=$this->task($task['id']);
430 curl_setopt($this->ch, CURLOPT_URL , $this->url_base."/tasks/".$task_ID);
431 $data_rep = json_decode(curl_exec($this->ch),true);
442 curl_setopt($this->ch, CURLOPT_URL, $this->url_base."/tasks/".$task_ID."/stories");
443 $data_rep = json_decode(curl_exec($this->ch),true);
523 if($this->tags_compare($tag_name,$task) == 1){