• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP force_array函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中force_array函数的典型用法代码示例。如果您正苦于以下问题:PHP force_array函数的具体用法?PHP force_array怎么用?PHP force_array使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: __construct

 public function __construct()
 {
     global $AdminWidgetsCols;
     if ($AdminWidgetsCols === NULL) {
         $AdminWidgetsCols = force_array($this->options->get('dashboard_widget_position', User::id()));
     }
 }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:7,代码来源:Dashboard_Widgets_model.php


示例2: __set_admin_menu

 public function __set_admin_menu()
 {
     $admin_menus = array('dashboard' => array(array('href' => site_url('dashboard'), 'icon' => 'fa fa-dashboard', 'title' => __('Dashboard')), array('href' => site_url(array('dashboard', 'update')), 'icon' => 'fa fa-dashboard', 'title' => __('Update Center'))), 'modules' => array(array('title' => __('Modules'), 'icon' => 'fa fa-puzzle-piece', 'href' => site_url('dashboard/modules'))), 'settings' => array(array('title' => __('Settings'), 'icon' => 'fa fa-cogs', 'href' => site_url('dashboard/settings'))));
     foreach (force_array($this->events->apply_filters('admin_menus', $admin_menus)) as $namespace => $menus) {
         foreach ($menus as $menu) {
             Menu::add_admin_menu_core($namespace, $menu);
         }
     }
 }
开发者ID:2329697501,项目名称:tendoo-cms,代码行数:9,代码来源:Dashboard_model.php


示例3: __initialize

 /**
  * @param array $options See http://plugins.jquery.com/project/Star_Rating_widget
  */
 function __initialize($options = array())
 {
     parent::__initialize("div");
     $this->Options = force_array($options);
     $this->Options['inputType'] = 'select';
     if (isset($this->Options['disabled'])) {
         $this->Options['disabled'] = true;
     }
     store_object($this);
 }
开发者ID:Naveenr9,项目名称:WebFramework,代码行数:13,代码来源:uistarselect.class.php


示例4: push_notice_array

 /**
  * Push Notice notice into
  *
  *
  **/
 public function push_notice_array($notice_array)
 {
     if (is_array($notice_array)) {
         foreach (force_array($notice_array) as $notice) {
             $this->push_notice(get_instance()->lang->line($notice));
         }
     } else {
         $this->push_notice(get_instance()->lang->line($notice_array));
     }
 }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:15,代码来源:Notice.php


示例5: registerPermissions

 public function registerPermissions($role, $permissions)
 {
     if (!$this->roleExists($role)) {
         $this->rolePermissions[$role] = [];
     }
     force_array($permissions);
     $n = count($permissions);
     for ($i = 0; $i < $n; $i++) {
         $this->rolePermissions[$role][] = new Permission($permissions[$i]);
     }
 }
开发者ID:valerio-bozzolan,项目名称:boz-php-another-php-framework,代码行数:11,代码来源:class-Permissions.php


示例6: add

 /**
  * Append a single or an array of menu entries.
  *
  * @param array|MenuEntry $menuEntries
  */
 public function add($menuEntries)
 {
     force_array($menuEntries);
     foreach ($menuEntries as $menuEntry) {
         $this->menuEntries[$menuEntry->uid] = $menuEntry;
         force_array($menuEntry->parentUid);
         foreach ($menuEntry->parentUid as $parentUid) {
             if ($parentUid === null) {
                 $parentUid = $this->rootUid;
             }
             $this->setParent($menuEntry->uid, $parentUid);
         }
     }
 }
开发者ID:valerio-bozzolan,项目名称:boz-php-another-php-framework,代码行数:19,代码来源:class-Menu.php


示例7: run

 function run()
 {
     if (current_user()->can($this->privilege)) {
         create_admin_menu($this->namespace, riake(0, $this->menu_position), riake(1, $this->menu_position));
         add_admin_menu($this->namespace, array('title' => $this->label, 'href' => '#', 'is_submenu' => false, 'icon' => $this->menu_icon));
         add_admin_menu($this->namespace, array('title' => $this->posts_list_label, 'href' => get_instance()->url->site_url(array('admin', 'posttype', $this->namespace, 'list'))));
         add_admin_menu($this->namespace, array('title' => $this->new_post_label, 'href' => get_instance()->url->site_url(array('admin', 'posttype', $this->namespace, 'new'))));
         if ($this->comment_enabled === TRUE) {
             add_admin_menu($this->namespace, array('title' => $this->post_comment_label, 'href' => get_instance()->url->site_url(array('admin', 'posttype', $this->namespace, 'comments'))));
         }
         foreach (force_array($this->query->get_defined_taxonomies()) as $taxonomy) {
             add_admin_menu($this->namespace, array('title' => riake('taxonomy-list-label', $taxonomy, sprintf(__('%s list'), riake('namespace', $taxonomy))), 'href' => get_instance()->url->site_url(array('admin', 'posttype', $this->namespace, 'taxonomy', riake('namespace', $taxonomy), 'list'))));
             add_admin_menu($this->namespace, array('title' => riake('new-taxonomy-label', $taxonomy, sprintf(__('New %s'), riake('namespace', $taxonomy))), 'href' => get_instance()->url->site_url(array('admin', 'posttype', $this->namespace, 'taxonomy', riake('namespace', $taxonomy), 'new'))));
         }
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:16,代码来源:PostType.Class.php


示例8: run

 function run()
 {
     $this->events->add_filter('admin_menus', function ($menus) {
         if (User::can($this->privilege)) {
             $menus[$this->namespace] = array(array('title' => $this->label, 'href' => '#', 'disable' => true, 'icon' => $this->menu_icon), array('title' => $this->posts_list_label, 'href' => site_url(array('dashboard', 'posttype', $this->namespace, 'list'))), array('title' => $this->new_post_label, 'href' => site_url(array('dashboard', 'posttype', $this->namespace, 'new'))));
             if ($this->comment_enabled === TRUE) {
                 $menus[$this->namespace][] = array('title' => $this->post_comment_label, 'href' => site_url(array('dashboard', 'posttype', $this->namespace, 'comments')));
             }
             foreach (force_array($this->query->get_defined_taxonomies()) as $taxonomy) {
                 $menus[$this->namespace][] = array('title' => riake('taxonomy-list-label', $taxonomy, sprintf(__('%s list'), riake('namespace', $taxonomy))), 'href' => site_url(array('dashboard', 'posttype', $this->namespace, 'taxonomy', riake('namespace', $taxonomy), 'list')));
                 $menus[$this->namespace][] = array('title' => riake('new-taxonomy-label', $taxonomy, sprintf(__('New %s'), riake('namespace', $taxonomy))), 'href' => site_url(array('dashboard', 'posttype', $this->namespace, 'taxonomy', riake('namespace', $taxonomy), 'new')));
             }
         }
         return $menus;
     });
 }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:16,代码来源:PostType.php


示例9: registerLanguage

 /**
  * @string string $code GNU Gettext code language
  * @string array $aliases You can specify language aliases (in lower case)
  * @string string $encode Override the default GNU Gettext language encode
  */
 function registerLanguage($code, $aliases = [], $encode = null, $iso = null)
 {
     if ($encode === null) {
         $encode = $this->gettextDefaultEncode;
     }
     if ($encode === null) {
         DEBUG && error(sprintf(_("Non hai specificato una codifica per la lingua '%s' e non ce n'è una predefinita. Impostala con la costante %s."), esc_html($code), 'GETTEXT_DEFAULT_ENCODE'));
         return false;
     }
     $this->languages[++$this->i] = new BozPHPLanguage($code, $encode, $iso);
     // Yes, the language code it's an alias to itself. That's a lazy hack!
     $this->aliases[strtolower($code)] = $this->i;
     // Each alias is associated to it's language code
     force_array($aliases);
     foreach ($aliases as $alias) {
         $this->aliases[$alias] = $this->i;
     }
 }
开发者ID:valerio-bozzolan,项目名称:boz-php-another-php-framework,代码行数:23,代码来源:class-RegisterLanguage.php


示例10: fetch_notice_output

    function fetch_notice_output($e, $extends_msg = '', $sort = FALSE)
    {
        if ($e === TRUE) {
            ?>
<style>
			.notice_sorter
			{
				border:solid 1px #999;
				color:#333;
			}
			.notice_sorter thead td
			{
				padding:2px 10px;
				text-align:center;
				background:#EEE;
				background:-moz-linear-gradient(top,#EEE,#CCC);
				border:solid 1px #999;
			}
			.notice_sorter tbody td
			{
				padding:2px 10px;
				text-align:justify;
				background:#FFF;
				border:solid 1px #999;
			}
			</style><table class="notice_sorter"><thead>
            <style>
			.notice_sorter
			{
				border:solid 1px #999;
				color:#333;
			}
			.notice_sorter thead td
			{
				padding:2px 10px;
				text-align:center;
				background:#EEE;
				background:-moz-linear-gradient(top,#EEE,#CCC);
				border:solid 1px #999;
			}
			.notice_sorter tbody td
			{
				padding:2px 10px;
				text-align:justify;
				background:#FFF;
				border:solid 1px #999;
			}
			</style>
            <tr><td>Index</td><td>Code</td><td>Description</td></tr></thead><tbody><?php 
            $index = 1;
            foreach ($__ as $k => $v) {
                ?>
<tr><td><?php 
                echo $index;
                ?>
</td><td><?php 
                echo $k;
                ?>
</td><td><?php 
                echo strip_tags($v);
                ?>
</td></tr><?php 
                $index++;
            }
            ?>
</tbody></table><?php 
        } else {
            if (is_string($e)) {
                $notices = force_array(get_core_vars('tendoo_notices'));
                if (in_array($e, $notices) || array_key_exists($e, $notices)) {
                    return $notices[$e];
                } else {
                    if (isset($notices)) {
                        if (array_key_exists($e, $notices)) {
                            return $notices[$e];
                        } else {
                            return tendoo_warning(__(sprintf('"%s" is not a valid error code', $e)));
                        }
                    } else {
                        if ($e != '' && strlen($e) <= 50) {
                            return tendoo_warning(__(sprintf('"%s" is not a valid error code', $e)));
                        } else {
                            return $e;
                        }
                    }
                }
            }
            return false;
        }
    }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:90,代码来源:core_helper.php


示例11: ob_get_clean

			$(modal).find('.modal-body').find('[data-action="activate"]').bind('click',function(){
				if($(papa).length > 0)
				{
					$(papa).find('[data-action="ADMITSETDEFAULT"]').trigger('click');
					$(modal).find('.modal-body').find('[data-action="activate"]').attr('disabled','disabled');
				}
				return false;
			});
		}
	});
});
</script>
<?php 
$footer_script = ob_get_clean();
$this->gui->col_config(1, array('inner-opening-wrapper' => '<div class="row themes_grid">', 'inner-closing-wrapper' => '</div>', 'footer-script' => $footer_script));
$this->gui->cols_width(1, 4);
foreach (force_array($themes_list) as $_theme) {
    $footer_buttons = array();
    $status = riake('active', $_theme) === true ? 'disabled="disabled"' : '';
    $footer_buttons[] = array('text' => __('Activate'), 'attrs' => 'data-action="ADMITSETDEFAULT" ' . $status);
    $footer_buttons[] = array('text' => __('Delete'), 'attrs' => 'data-action="ADMITDELETETHEME"');
    $footer_buttons[] = array('text' => __('Details'), 'attrs' => 'data-action="OPENDETAILS"');
    $this->gui->set_meta(array('type' => 'panel-footer', 'title' => riake('name', $_theme), 'namespace' => core_meta_namespace(array('admin', 'themes', riake('namespace', $_theme))), 'opening-wrapper' => '<div class="col-lg-3 theme_head"  
		data-theme_namespace="' . $_theme['namespace'] . '" 
		data-theme_name="' . $_theme['name'] . '"
		data-theme_thumb="' . theme_thumb($_theme['namespace']) . '"
		data-theme_author="' . $_theme['author'] . '"
		data-theme_version="' . $_theme['version'] . '"><input type="hidden" class="theme_details" value="' . htmlentities($_theme['description']) . '">', 'closing-wrapper' => '</div>', 'footer-buttons' => $footer_buttons))->push_to(1);
    $this->gui->set_item(array('type' => 'dom', 'value' => '<img src="' . theme_thumb($_theme['namespace']) . '" style="width:100%;min-height:250px;">'))->push_to(core_meta_namespace(array('admin', 'themes', riake('namespace', $_theme))));
}
$this->gui->get();
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:main.php


示例12: is_active

 /**
  * Is Active
  * 
  * Checks whether a module is active
  *
  * @access       public
  * @author       blair Jersyer
  * @copyright    2015
  * @param        string $module_namespace
  * @param 			bool $fresh 
  * @since        3.0.1
  * @return 		  bool
  */
 static function is_active($module_namespace, $fresh = false)
 {
     global $Options;
     if ($fresh === TRUE) {
         $activated_modules = riake('actives_modules', $Options);
     } else {
         $activated_modules = self::$actives;
     }
     if (in_array($module_namespace, force_array($activated_modules), true)) {
         return true;
     }
     return false;
 }
开发者ID:2329697501,项目名称:tendoo-cms,代码行数:26,代码来源:Modules.php


示例13: foreach

    
    
    <div class="row">
        <?php 
foreach (force_array($this->gui->get_cols()) as $col_id => $col_data) {
    ?>
        <div class="col-lg-<?php 
    echo riake('width', $col_data, 1) * 3;
    ?>
">
            <?php 
    $config = riake('configs', $col_data);
    // Inner Opening Wrapper
    echo $this->events->apply_filters('gui_opening_wrapper', '');
    // looping $col_data[ 'metas' ];
    foreach (force_array(riake('metas', $col_data)) as $meta) {
        // get meta type
        if (in_array($meta_type = riake('type', $meta), array('box-default', 'box-primary', 'box-success', 'box-info', 'box-warning', 'box'))) {
            // meta icon ?
            $icon = riake('icon', $meta, false);
            // enable gui form saver
            $form_expire = gmt_to_local(time(), 'UTC') + GUI_EXPIRE;
            $ref = urlencode(current_url());
            $use_namespace = riake('use_namespace', $meta, false);
            $class = riake('classes', riake('custom', $meta));
            $id = riake('id', riake('custom', $meta));
            $action = riake('action', riake('custom', $meta), site_url(array('dashboard', 'options', 'save')));
            $method = riake('method', riake('custom', $meta), 'POST');
            $enctype = riake('enctype', riake('custom', $meta), 'multipart/form-data');
            $namespace = riake('namespace', $meta);
            if (riake('gui_saver', $meta)) {
开发者ID:2329697501,项目名称:tendoo-cms,代码行数:29,代码来源:body.php


示例14: Tr

 /**
  * Creates a new row.
  * 
  * @param array $data If given creates new cells in the row (see <Tr::NewCell>)
  * @param array $options See <Tr> for options
  * @return type
  */
 function &NewRow($data = false, $options = false)
 {
     $this->current_row = new Tr($options ? $options : $this->RowOptions);
     $this->content($this->current_row);
     if ($data) {
         $i = 0;
         foreach (force_array($data) as $rowdata) {
             $cell = $this->current_row->NewCell($rowdata);
             if ($this->table && $this->table->colgroup && isset($this->table->colgroup->_content[$i]) && isset($this->table->colgroup->_content[$i]->_attributes["align"]) && $this->table->colgroup->_content[$i]->_attributes["align"]) {
                 $cell->align = $this->table->colgroup->_content[$i]->_attributes["align"];
             }
             $i++;
         }
     }
     return $this->current_row;
 }
开发者ID:rtoi,项目名称:WebFramework,代码行数:23,代码来源:tbody.class.php


示例15: display_login_fields

 /**
  * Default behavior when no auth module is installed
  **/
 function display_login_fields()
 {
     foreach (force_array($this->config->item('signin_fields')) as $fields) {
         echo $fields;
     }
 }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:9,代码来源:Login_model.php


示例16: __

<?php

$this->gui->cols_width(1, 4);
$this->gui->enable(array('pagination'));
$this->gui->set_meta(array('type' => 'panel-ho', 'title' => __('Roles'), 'namespace' => core_meta_namespace(array('roles', 'list'))))->push_to(1);
foreach (force_array($get_roles) as $_role) {
    $rows[] = array($_role['ID'], '<a href="' . $this->instance->url->site_url(array('admin', 'roles', 'edit', $_role['ID'])) . '">' . $_role['NAME'] . '</a>', $_role['DESCRIPTION'], timespan(strtotime($_role['DATE']), $this->instance->date->timestamp()), $_role['IS_SELECTABLE'] == "1" ? __('Yes') : __('No'), '<a href="' . $this->instance->url->site_url(array('admin', 'roles', 'delete', $_role['ID'])) . '">' . __('Delete') . '</a>');
}
$this->gui->set_item(array('type' => 'table', 'cols' => array(__('Id'), __('Name'), __('Description'), __('Created'), __('Available on registration'), __('Delete')), 'rows' => $rows))->push_to(core_meta_namespace(array('roles', 'list')));
$this->gui->get();
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:10,代码来源:list.php


示例17: options

 /**
  * Options Management ocntroller
  *
  *
  * @access       public
  * @author       blair Jersyer
  * @copyright    name date
  * @param        string $page
  * @param		  string $arg2
  * @since        3.0.1
  */
 function options($mode = 'list')
 {
     if (in_array($mode, array('save', 'merge'))) {
         if (!$this->input->post('gui_saver_ref') && !$this->input->post('gui_json')) {
             redirect(array('dashboard', 'options'));
         }
         if ($this->input->post('gui_saver_expiration_time') > gmt_to_local(time(), 'UTC')) {
             $content = array();
             // loping post value
             foreach ($_POST as $key => $value) {
                 if (!in_array($key, array('gui_saver_option_namespace', 'gui_saver_ref', 'gui_saver_expiration_time', 'gui_saver_use_namespace'))) {
                     /**
                      * Merge options which a supposed to be wrapped within the same array
                      **/
                     if ($mode == 'merge' && is_array($value)) {
                         $options = $this->options->get($key);
                         $options = array_merge(force_array($options), $value);
                     }
                     // save only when it's not an array
                     if (!is_array($_POST[$key])) {
                         if ($this->input->post('gui_saver_use_namespace') === 'true') {
                             $content[$key] = $mode == 'merge' ? $options : $this->input->post($key);
                         } else {
                             if ($mode == 'merge' && is_array($value)) {
                                 $this->options->set($key, $options, true);
                             } else {
                                 $this->options->set($key, $this->input->post($key), true);
                             }
                         }
                     } else {
                         if ($this->input->post('gui_saver_use_namespace') === 'true') {
                             $content[$key] = $mode == 'merge' ? $options : $_POST[$key];
                         } else {
                             if ($mode == 'merge' && is_array($value)) {
                                 $this->options->set($key, $options, true);
                             } else {
                                 $this->options->set($key, $_POST[$key], true);
                             }
                         }
                     }
                 }
             }
             // saving all post using namespace
             if ($this->input->post('gui_saver_use_namespace') == 'true') {
                 $this->options->set($this->input->post('gui_saver_option_namespace'), $content, true);
             }
             if (!$this->input->post('gui_json')) {
                 // if JSON mode is enabled redirect is disabled
                 redirect(urldecode($this->input->post('gui_saver_ref')) . '?notice=option-saved');
             }
         }
     } else {
         if ($mode == 'get') {
             echo json_decode($this->options->get($_POST['option_key']));
         } else {
             if (in_array($mode, array('save_user_meta', 'merge_user_meta'))) {
                 if ($this->input->post('gui_saver_expiration_time') > gmt_to_local(time(), 'UTC')) {
                     $content = array();
                     // loping post value
                     foreach ($_POST as $key => $value) {
                         if (!in_array($key, array('gui_saver_option_namespace', 'gui_saver_ref', 'gui_saver_expiration_time', 'gui_saver_use_namespace', 'user_id'))) {
                             if ($mode == 'merge_user_meta' && is_array($value)) {
                                 $options = $this->options->get($key);
                                 $options = array_merge(force_array($options), $value);
                             }
                             // save only when it's not an array
                             if (!is_array($_POST[$key])) {
                                 if ($this->input->post('gui_saver_use_namespace') === 'true') {
                                     $content[$key] = $mode == 'merge' ? $options : $this->input->post($key);
                                 } else {
                                     if ($mode == 'merge' && is_array($value)) {
                                         $this->options->set($key, $options, true, $this->input->post('user_id'));
                                     } else {
                                         $this->options->set($key, $this->input->post($key), true, $this->input->post('user_id'));
                                     }
                                 }
                             } else {
                                 if ($this->input->post('gui_saver_use_namespace') === 'true') {
                                     $content[$key] = $mode == 'merge' ? $options : $_POST[$key];
                                 } else {
                                     if ($mode == 'merge' && is_array($value)) {
                                         $this->options->set($key, $options, true, $this->input->post('user_id'));
                                     } else {
                                         $this->options->set($key, $_POST[$key], true, $this->input->post('user_id'));
                                     }
                                 }
                             }
                         }
                     }
//.........这里部分代码省略.........
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:101,代码来源:Dashboard.php


示例18: addColumn

 /**
  * Manually adds a column specification to the visualization.
  * 
  * @param string $name Column name
  * @param string $label Column label
  * @param string $type Type of values
  * @return GoogleVisualization `$this`
  */
 function addColumn($name, $label = false, $type = false)
 {
     $this->_columnDef[$label] = array($name, $type);
     if (isset(self::$Colors[$name])) {
         $cols = force_array($this->opt('colors'));
         $cols[] = self::$Colors[$name];
         $this->opt('colors', $cols);
     }
     return $this;
 }
开发者ID:kishorenani,项目名称:WebFramework,代码行数:18,代码来源:googlevisualization.class.php


示例19: set_group

 /**
  * Create a new role
  *
  * @access public
  * @params string role name
  * @params string role definition
  * @params string role type
  * @return string error code
  **/
 function set_group($name, $definition, $type, $mode = 'create', $group_id = 0)
 {
     $name = strtolower($name);
     // Check wether a group using this name exists
     $group = $this->auth->get_group_name($name);
     if ($mode === 'create') {
         if ($group === FALSE) {
             $this->users->auth->create_group($name);
             $admin_groups = force_array($this->options->get('admin_groups'));
             $public_groups = force_array($this->options->get('public_groups'));
             // make sure to delete groups saved on option table
             if (!in_array($name, $admin_groups) && !in_array($name, $public_groups)) {
                 // Saving as public group
                 if ($type === 'public') {
                     $public_groups[] = $name;
                     $this->options->set('public_groups', $public_groups, true);
                 } else {
                     $admin_groups[] = $name;
                     $this->options->set('admin_groups', $admin_groups, true);
                 }
                 return 'group-created';
             }
         }
     } else {
         $group_name = $this->auth->get_group_name($group_id);
         if ($group_name) {
             // Update group name
             $this->auth->update_group($group_id, $name);
             // get all groups types
             $admin_groups = force_array($this->options->get('admin_groups'));
             $public_groups = force_array($this->options->get('public_groups'));
             // remove from admin_groups
             array_walk($admin_groups, function (&$item, $key, $group_name) use(&$admin_groups) {
                 if ($group_name === $item) {
                     unset($admin_groups[$key]);
                 }
             }, $group_name);
             // remove from public group
             array_walk($public_groups, function (&$item, $key, $group_name) use(&$public_groups) {
                 if ($group_name === $item) {
                     unset($public_groups[$key]);
                 }
             }, $group_name);
             // make sure to delete groups saved on option table
             if (!in_array($name, $admin_groups) || !in_array($name, $public_groups)) {
                 // Saving as public group
                 if ($type === 'public') {
                     $public_groups[] = $name;
                 } else {
                     $admin_groups[] = $name;
                 }
                 $this->options->set('public_groups', $public_groups, true);
                 $this->options->set('admin_groups', $admin_groups, true);
                 return 'group-updated';
             }
         }
         return 'unknow-group';
     }
     return 'group-already-exists';
 }
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:69,代码来源:Users_model.php


示例20: _e

</li>
              <?php 
} else {
    ?>
                  <li class="header"><?php 
    _e('Nothing to display right now');
    ?>
</li>
                  <?php 
}
?>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                	<?php 
foreach (force_array($admin_notices) as $notice) {
    ?>
                  <li>
                    <a href="<?php 
    echo riake('link', $notice);
    ?>
">
                      <i class="fa <?php 
    echo riake('icon', $notice);
    ?>
 text-aqua"></i> <?php 
    echo riake('message', $notice);
    ?>
                    </a>
                  </li>
                  <?php 
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:inner_head.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP force_authentication函数代码示例发布时间:2022-05-15
下一篇:
PHP forbiddenException函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap