PageRenderTime 1470ms queryFilters 0ms Sphinxql 229ms GetByIds 1208ms meta 0ms repositoryFilters 18ms languageFilters 0ms sourceFilters 1ms

108,410 results for 'php compact' (1470 ms)

Source

Language

Repository

Collections.php https://github.com/asdlfz/cockpit.git | PHP | 63 lines
1<?php
2
8	public function index() {
9		return $this->render("collections:views/index.php");
10	}
19
20        return $this->render("collections:views/collection.php", compact('id', 'locales'));
21    }
35
36        return $this->render("collections:views/entries.php", compact('id', 'collection', 'count'));
37    }
58
59        return $this->render("collections:views/entry.php", compact('collection', 'entry', 'locales'));
60
Collections.php https://github.com/berrigan/cockpit.git | PHP | 59 lines
1<?php
2
8	public function index() {
9		return $this->render("collections:views/index.php");
10	}
17
18        return $this->render("collections:views/collection.php", compact('id'));
19    }
33
34        return $this->render("collections:views/entries.php", compact('id', 'collection', 'count'));
35    }
54
55        return $this->render("collections:views/entry.php", compact('collection', 'entry'));
56
TCompactProtocol.php https://github.com/brucemj/showHbase.git | PHP | 678 lines
76  protected static $ttypes = array(
77    TCompactProtocol::COMPACT_STOP => TType::STOP ,
78    TCompactProtocol::COMPACT_TRUE => TType::BOOL, // used for collection
270    if ($this->state == TCompactProtocol::STATE_BOOL_WRITE) {
271      $ctype = TCompactProtocol::COMPACT_FALSE;
272      if ($value) {
272      if ($value) {
273        $ctype = TCompactProtocol::COMPACT_TRUE;
274      }
333    $field_type = $this->getTType($field_type & 0x0f);
334    if ($field_type == TCompactProtocol::COMPACT_TRUE) {
335      $this->state = TCompactProtocol::STATE_BOOL_READ;
336      $this->boolValue = true;
337    } else if ($field_type == TCompactProtocol::COMPACT_FALSE) {
338      $this->state = TCompactProtocol::STATE_BOOL_READ;
Collections.php https://github.com/brunoom1/cockpit.git | PHP | 59 lines
1<?php
2
8	public function index() {
9		return $this->render("collections:views/index.php");
10	}
17
18        return $this->render("collections:views/collection.php", compact('id'));
19    }
33
34        return $this->render("collections:views/entries.php", compact('id', 'collection', 'count'));
35    }
54
55        return $this->render("collections:views/entry.php", compact('collection', 'entry'));
56
php-array.el https://github.com/andreaja/dotemacs.git | Lisp | 719 lines
21;; Arrays handling functions
22;; http://php.net/manual/en/ref.array.php
23;; file:///usr/share/doc/php-doc/html/ref.array.html
32
33(define-skeleton php-array_chunk
34  "Insert an array_chunk statement. Split an array into chunks"
41
42(define-skeleton php-array_column
43  "Insert an array_column statement. Return the values from a single column in the input array"
97
98(define-skeleton php-array_diff_ukey
99  "Insert an array_diff_ukey statement. Computes the difference of arrays using a callback function on the keys for comparison"
514
515(define-skeleton php-compact
516  "Insert a compact statement. Create array containing variables and their values"
editreport.php https://github.com/agrowe/moodle-block_configurablereports.git | PHP | 261 lines
1<?php
2
75
76		require_once($CFG->dirroot.'/blocks/configurable_reports/report.class.php');
77		require_once($CFG->dirroot.'/blocks/configurable_reports/reports/'.$report->type.'/report.class.php');
79		$reportclass = new $reportclassname($report->id);
80		$PAGE->set_url('/blocks/configurable_reports/editreport.php', array('id'=>$id));
81	} else {
82		$title = get_string('newreport','block_configurable_reports');
83		$PAGE->set_url('/blocks/configurable_reports/editreport.php', null);
84	}
155	if(!empty($report))
156		$editform = new report_edit_form('editreport.php',compact('report','courseid','context'));
157	else
157	else
158		$editform = new report_edit_form('editreport.php',compact('courseid','context'));
159
ImportExport.php https://gitlab.com/rsefer/mba.git | PHP | 383 lines
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
2
119
120        Ninja_Forms::template( 'admin-menu-import-export.html.php', compact( 'tabs', 'active_tab' ) );
121    }
161    {
162        Ninja_Forms::template( 'admin-metabox-import-export-forms-import.html.php' );
163    }
167        $forms = Ninja_Forms()->form()->get_forms();
168        Ninja_Forms::template( 'admin-metabox-import-export-forms-export.html.php', compact( 'forms' ) );
169    }
172    {
173        Ninja_Forms::template( 'admin-metabox-import-export-favorite-fields-import.html.php' );
174    }
178        $fields = Ninja_Forms()->form()->get_fields( array( 'saved' => 1) );
179        Ninja_Forms::template( 'admin-metabox-import-export-favorite-fields-export.html.php', compact( 'fields' ) );
180    }
report.php https://github.com/alfunkso/moodle.git | PHP | 835 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_form.php');
29require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_table.php');
29require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_table.php');
30require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_question_table.php');
31require_once($CFG->dirroot . '/mod/quiz/report/statistics/statisticslib.php');
81
82        $reporturl = new moodle_url('/mod/quiz/report.php', $pageoptions);
83
83
84        $mform = new quiz_statistics_settings_form($reporturl, compact('quiz'));
85
520        $output = $PAGE->get_renderer('mod_quiz');
521        $imageurl = new moodle_url('/mod/quiz/report/statistics/statistics_graph.php',
522                                    compact('quizid', 'currentgroup', 'whichattempts'));
report.php https://github.com/bezborodow/moodle.git | PHP | 835 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_form.php');
29require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_table.php');
29require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_table.php');
30require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_question_table.php');
31require_once($CFG->dirroot . '/mod/quiz/report/statistics/statisticslib.php');
81
82        $reporturl = new moodle_url('/mod/quiz/report.php', $pageoptions);
83
83
84        $mform = new quiz_statistics_settings_form($reporturl, compact('quiz'));
85
520        $output = $PAGE->get_renderer('mod_quiz');
521        $imageurl = new moodle_url('/mod/quiz/report/statistics/statistics_graph.php',
522                                    compact('quizid', 'currentgroup', 'whichattempts'));
enrol.php https://moodleazure.svn.codeplex.com/svn | PHP | 794 lines
1<?php // $Id: enrol.php,v 1.135.2.7 2008/12/10 06:30:23 dongsheng Exp $
2
4require_once($CFG->dirroot.'/enrol/authorize/const.php');
5require_once($CFG->dirroot.'/enrol/authorize/localfuncs.php');
6
48                $wwwsroot = str_replace('http:','https:', $CFG->wwwroot);
49                redirect("$wwwsroot/course/enrol.php?id=$course->id");
50                exit;
79            require_once($CFG->dirroot.'/enrol/authorize/enrol_form.php');
80            $frmenrol = new enrol_authorize_form('enrol.php', compact('course'));
81            if ($frmenrol->get_data()) {
147        global $CFG, $USER, $SESSION;
148        require_once('authorizenetlib.php');
149
408        if (!check_openssl_loaded()) {
409            notify('PHP must be compiled with SSL support (--with-openssl)');
410        }
enrol.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 793 lines
1<?php // $Id$
2
3require_once($CFG->dirroot.'/enrol/enrol.class.php');
4require_once($CFG->dirroot.'/enrol/authorize/const.php');
5require_once($CFG->dirroot.'/enrol/authorize/localfuncs.php');
48                $wwwsroot = str_replace('http:','https:', $CFG->wwwroot);
49                redirect("$wwwsroot/course/enrol.php?id=$course->id");
50                exit;
79            require_once($CFG->dirroot.'/enrol/authorize/enrol_form.php');
80            $frmenrol = new enrol_authorize_form('enrol.php', compact('course'));
81            if ($frmenrol->get_data()) {
147        global $CFG, $USER, $SESSION;
148        require_once('authorizenetlib.php');
149
220            $a = new stdClass;
221            $a->url = "$CFG->wwwroot/enrol/authorize/index.php?order=$order->id";
222            $a->orderid = $order->id;
option.php https://bitbucket.org/organicdevelopment/joomla-2.5.git | PHP | 154 lines
1<?php
2/**
91	public function editOption($var, $num, $name = null, $value = null){
92		return $this->renderLayout($this->app->path->path("elements:option/tmpl/editoption.php"), compact('var', 'num', 'name', 'value'));
93	}
150
151		return compact('option');
152	}
option.php https://bitbucket.org/kraymitchell/saiu.git | PHP | 154 lines
1<?php
2/**
91	public function editOption($var, $num, $name = null, $value = null){
92		return $this->renderLayout($this->app->path->path("elements:option/tmpl/editoption.php"), compact('var', 'num', 'name', 'value'));
93	}
150
151		return compact('option');
152	}
Advanced-Templates.php https://github.com/ElmsPark/pods.git | PHP | 821 lines
149
150            # Prefetch page ID for hooking in early so we can the PHP early.
151            # This allows a template to be able to add_actions and filters
190                # Send back to post type manager
191                wp_redirect('edit.php?post_type='.$this->object_type.'&last=' . $lastPost);
192                die;
283
284                    #Execute the PHP code of the template.
285                    # Any add_filter or add_action for after init will now work
603            wp_enqueue_script('codemirror-mode-clike', PODS_URL . 'components/Advanced-Templates/ui/codemirror/mode/clike/clike.js', array(), false, true);
604            wp_enqueue_script('codemirror-mode-php', PODS_URL . 'components/Advanced-Templates/ui/codemirror/mode/php/php.js', array(), false, true);
605            wp_enqueue_script('codemirror-mode-htmlmxed', PODS_URL . 'components/Advanced-Templates/ui/codemirror/mode/htmlmixed/htmlmixed.js', array(), false, true);
738        require_once PODS_DIR . 'components/Advanced-Templates/ui/libs/functions.php';
739        pods_view(PODS_DIR . 'components/Advanced-Templates/ui/editor.php', compact(array_keys(get_defined_vars())));
740    }
TCompactProtocol.php git://github.com/xianglei/easyhadoop.git | PHP | 678 lines
76  protected static $ttypes = array(
77    TCompactProtocol::COMPACT_STOP => TType::STOP ,
78    TCompactProtocol::COMPACT_TRUE => TType::BOOL, // used for collection
270    if ($this->state == TCompactProtocol::STATE_BOOL_WRITE) {
271      $ctype = TCompactProtocol::COMPACT_FALSE;
272      if ($value) {
272      if ($value) {
273        $ctype = TCompactProtocol::COMPACT_TRUE;
274      }
333    $field_type = $this->getTType($field_type & 0x0f);
334    if ($field_type == TCompactProtocol::COMPACT_TRUE) {
335      $this->state = TCompactProtocol::STATE_BOOL_READ;
336      $this->boolValue = true;
337    } else if ($field_type == TCompactProtocol::COMPACT_FALSE) {
338      $this->state = TCompactProtocol::STATE_BOOL_READ;
Webhooks.php https://github.com/agentejo/cockpit.git | PHP | 125 lines
1<?php
2/**
29
30        return $this->render('cockpit:views/webhooks/index.php', compact('webhooks'));
31    }
80
81        return $this->render('cockpit:views/webhooks/webhook.php', compact('webhook', 'triggers'));
82    }
96            // invalidate cache
97            if ($cache = $this->app->path('#tmp:webhooks.cache.php')) {
98                @unlink($cache);
114            // invalidate cache
115            if ($cache = $this->app->path('#tmp:webhooks.cache.php')) {
116                @unlink($cache);
Render.php https://github.com/amdrew/ninja-forms.git | PHP | 504 lines
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
2
187        do_action( 'ninja_forms_before_container', $form_id, $form->get_settings(), $form_fields );
188        Ninja_Forms::template( 'display-form-container.html.php', compact( 'form_id' ) );
189
199            var form = [];
200            form.id = '<?php echo $form_id; ?>';
201            form.settings = <?php echo wp_json_encode( $form->get_settings() ); ?>;
202
203            form.fields = <?php echo wp_json_encode( $fields ); ?>;
204
208
209        <?php
210        self::enqueue_scripts( $form_id );
348        do_action( 'ninja_forms_before_container_preview', $form_id, $form[ 'settings' ], $fields );
349        Ninja_Forms::template( 'display-form-container.html.php', compact( 'form_id' ) );
350
bootstrap.php https://github.com/arjunmenon/cockpit.git | PHP | 164 lines
1<?php
2
29        // custom form validation
30        if ($app->path("custom:forms/{$form}.php") && false===include($app->path("custom:forms/{$form}.php"))) {
31            return false;
86
87        $app->renderView("forms:views/api/form.php", compact('name', 'options'));
88    },
158
159        $app->renderView("forms:views/dashboard.php with cockpit:views/layouts/dashboard.widget.php", compact('title', 'badge', 'forms'));
160    });
bootstrap.php https://github.com/asdlfz/cockpit.git | PHP | 164 lines
1<?php
2
29        // custom form validation
30        if ($this->path("custom:forms/{$form}.php") && false===include($this->path("custom:forms/{$form}.php"))) {
31            return false;
86
87        $app->renderView("forms:views/api/form.php", compact('name', 'options'));
88    },
158
159        $this->renderView("forms:views/dashboard.php with cockpit:views/layouts/dashboard.widget.php", compact('title', 'badge', 'forms'));
160    });
edit.php https://moodleazure.svn.codeplex.com/svn | PHP | 169 lines
1<?php // $Id: edit.php,v 1.108.2.3 2010/06/17 20:15:26 mudrd8mz Exp $
2      // Edit course settings
4    require_once('../config.php');
5    require_once($CFG->dirroot.'/enrol/enrol.class.php');
6    require_once($CFG->libdir.'/blocklib.php');
6    require_once($CFG->libdir.'/blocklib.php');
7    require_once('lib.php');
8    require_once('edit_form.php');
67/// first create the form
68    $editform = new course_edit_form('edit.php', compact('course', 'category'));
69    // now override defaults if course already exists
77        } else {
78            redirect($CFG->wwwroot.'/course/view.php?id='.$course->id);
79        }
114                // Redirect users with metacourse capability to student import
115                redirect($CFG->wwwroot."/course/importstudents.php?id=$course->id");
116            } else {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21