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


PHP Settings::extend方法代码示例

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


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

示例1: array

<?php

return Settings::extend('item', array('alias' => array('module' => TRUE, 'global' => TRUE), 'version' => FALSE, 'module' => ':module', 'controller' => ':module', 'model' => ':module', 'form' => ':module', 'viewer' => ':module', 'view' => array('list' => 'item/list', 'create' => 'item/create', 'update' => 'item/update', 'version' => 'item/version', 'close' => 'item/close'), 'list' => array('type' => 'table', 'selectable' => FALSE, 'sortable' => FALSE, 'batch' => array(), 'hidable' => TRUE, 'create' => TRUE, 'view' => array('tools' => 'list/item/tools', 'show_hide' => 'list/item/show_hide'), 'tools' => array('update', 'delete', 'preview' => array('icon' => 'search', 'attributes' => array('target' => '_blank'), 'acl' => FALSE)), 'keys' => array('timestamp' => array('view' => 'timestamp', 'width' => 150), 'title' => array('action' => 'update')), 'sort' => array('title' => 'ASC', 'timestamp' => 'DESC'), 'filter' => array('title' => array('type' => 'text', 'operators' => array('LIKE')), 'timestamp' => array('type' => 'number', 'operators' => array('=', '>', '<')), 'status' => array('type' => 'option', 'operators' => array('='), 'options' => array(Model_Item::STATUS_EDIT, Model_Item::STATUS_LIVE)), 'created' => array('type' => 'date', 'operators' => array('<', '>', '=')), 'owner_id' => array('type' => 'relation', 'operators' => array('=', '<>'), 'model' => 'User', 'field' => 'username')), 'pagination' => array('step' => 30))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:page.php

示例2: array

<?php

return Settings::extend('default/config', array());
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:config.php

示例3: array

<?php

return Settings::extend('default/form', array('domain' => 'domain.com'));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:form.php

示例4: array

<?php

return Settings::extend('default/link', array('modules' => array('Page', 'News', 'Event', 'File'), 'requests' => array('Home')));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:link.php

示例5: array

<?php

return Settings::extend('item', array('list' => array('create' => array(), 'list' => array())));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:content.php

示例6: array

<?php

return Settings::extend('branch', array('alias' => FALSE, 'list' => array('keys' => Settings::lock(array('title')), 'filter' => Settings::lock(array()), 'sort' => Settings::lock(array()), 'pagination' => FALSE)));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:group.php

示例7: array

<?php

return Settings::extend('branch', array('list' => array('keys' => Settings::lock(array('menu' => array('view' => 'menu')))), 'modules' => array('Item'), 'requests' => array()));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:menu.php

示例8: array

<?php

return Settings::extend('item', array('navigation' => Settings::lock(array('tools' => array('default' => array(), 'index' => array(), 'list' => array(), 'create' => array(), 'update' => array())))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:single.php

示例9: array

<?php

return Settings::extend('default/image', array('unzip' => TRUE, 'group' => TRUE, 'sizes' => array('admin' => array('width' => 90, 'height' => 90, 'method' => Image::METHOD_SCALE, 'enlarge' => TRUE), 'tiny' => array('width' => 30, 'height' => 30, 'method' => Image::METHOD_SCALE, 'enlarge' => TRUE), 'thumb' => array('width' => 100, 'height' => 100, 'method' => Image::METHOD_CROP, 'enlarge' => TRUE), 'small' => array('width' => 300, 'height' => 1000, 'method' => Image::METHOD_SCALE, 'enlarge' => TRUE), 'normal' => array('width' => 600, 'height' => 2000, 'method' => Image::METHOD_SCALE, 'enlarge' => TRUE), 'wide' => array('width' => 800, 'height' => 350, 'method' => Image::METHOD_CROP, 'enlarge' => TRUE), 'big' => array('width' => 800, 'height' => 4000, 'method' => Image::METHOD_SCALE, 'enlarge' => FALSE), 'huge' => array('width' => 1000, 'height' => 4000, 'method' => Image::METHOD_SCALE, 'enlarge' => FALSE), 'slide' => array('width' => 1180, 'height' => 349, 'method' => Image::METHOD_CROP, 'enlarge' => TRUE)), 'sizes_embed' => array('tiny', 'small', 'normal')));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:image.php

示例10: array

<?php

return Settings::extend('item', array('list' => array('tools' => array('update', 'delete'))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:slide.php

示例11: array

<?php

return Settings::extend('item', array('list' => array('type' => 'table', 'keys' => Settings::lock(array('timed' => array('view' => 'timed', 'width' => 15), 'timestamp' => array('view' => 'timestamp', 'width' => 150), 'time_publication' => array('view' => 'timestamp', 'width' => 150), 'title')), 'sort' => Settings::lock(array('time_publication' => 'DESC')))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:news.php

示例12: array

<?php

return Settings::extend('item', array('group' => FALSE, 'list' => array('type' => 'tree', 'hidable' => FALSE, 'sortable' => TRUE, 'tools' => Settings::lock(array('create', 'update', 'delete')), 'sort' => Settings::lock(array()), 'filter' => Settings::lock(array()), 'pagination' => Settings::lock(FALSE))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:branch.php

示例13: array

<?php

return Settings::extend('item', array('modules' => array('Item'), 'requests' => array(), 'route' => 'frontend'));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:link.php

示例14: array

<?php

return Settings::extend('module', array('alias' => array('module' => FALSE, 'global' => FALSE), 'version' => FALSE, 'module' => ':module', 'controller' => ':module', 'model' => ':module', 'form' => ':module', 'viewer' => ':module', 'view' => array('list' => 'item/list', 'create' => 'item/create', 'update' => 'item/update', 'version' => 'item/version', 'close' => 'item/close'), 'group' => FALSE, 'list' => array('type' => 'table', 'selectable' => FALSE, 'sortable' => FALSE, 'batch' => array(), 'hidable' => TRUE, 'create' => TRUE, 'view' => array('tools' => 'list/item/tools', 'show_hide' => 'list/item/show_hide'), 'tools' => array('update', 'delete', 'group', 'preview' => array('icon' => 'search', 'attributes' => array('target' => '_blank'), 'acl' => FALSE)), 'keys' => array('timestamp' => array('view' => 'timestamp', 'width' => 150), 'title'), 'sort' => array('title' => 'ASC'), 'filter' => array('title' => array('type' => 'text', 'operators' => array('LIKE')), 'status' => array('type' => 'option', 'operators' => array('='), 'options' => array(Model_Item::STATUS_EDIT, Model_Item::STATUS_LIVE))), 'pagination' => array('step' => 10)), 'navigation' => array('tools' => array('default' => array(), 'index' => array(), 'list' => array(), 'create' => array(), 'update' => array('delete')))));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:item.php

示例15: array

<?php

return Settings::extend('item', array('form_upload' => 'Upload', 'form_store' => 'Store', 'list' => array('hidable' => FALSE, 'tools' => array('update', 'delete'), 'keys' => Settings::lock(array('title', 'file' => array('view' => 'file'))), 'sort' => Settings::lock(array('title' => 'ASC', 'file' => 'ASC')), 'filter' => Settings::lock(array('title' => array('type' => 'text', 'operators' => array('LIKE')), 'file' => array('type' => 'text', 'operators' => array('LIKE')))), 'pagination' => array('step' => 10)), 'unzip' => FALSE, 'extensions' => FALSE, 'url_files' => 'files/files/', 'path_files' => FILESPATH . 'files' . DIRECTORY_SEPARATOR, 'path_temp' => TEMPPATH));
开发者ID:yubinchen18,项目名称:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代码行数:3,代码来源:file.php


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