當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Settings::lock方法代碼示例

本文整理匯總了PHP中Settings::lock方法的典型用法代碼示例。如果您正苦於以下問題:PHP Settings::lock方法的具體用法?PHP Settings::lock怎麽用?PHP Settings::lock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Settings的用法示例。


在下文中一共展示了Settings::lock方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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

示例2: array

<?php

return Settings::extend('item', array('list' => array('view' => array('show_hide' => 'list/item/block_unblock'), 'tools' => array('update', 'delete', 'roles'), 'keys' => array('username', 'email'), 'sort' => Settings::lock(array('username' => 'ASC', 'email' => 'DESC')), 'filter' => Settings::lock(array('username' => array('type' => 'text', 'operators' => array('LIKE')), 'email' => array('type' => 'text', 'operators' => array('LIKE')))), 'pagination' => array('step' => 10))));
開發者ID:yubinchen18,項目名稱:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代碼行數:3,代碼來源:user.php

示例3: array

<?php

return Settings::extend('file', array('form_embed' => 'Embed', 'list' => array('keys' => Settings::lock(array('thumb' => array('view' => 'thumb'), 'file', 'title'))), 'unzip' => TRUE, 'extensions' => array('jpg', 'jpeg', 'png', 'gif'), 'url_files' => 'files/images/original', 'path_files' => FILESPATH . 'images' . DIRECTORY_SEPARATOR . 'original' . DIRECTORY_SEPARATOR, 'url_images' => 'files/images/', 'path_images' => FILESPATH . 'images' . DIRECTORY_SEPARATOR, 'sizes' => array('admin' => array('width' => 90, 'height' => 90, 'method' => Image::METHOD_SCALE, 'enlarge' => TRUE), 'icon' => array('width' => 30, 'height' => 30, 'method' => Image::METHOD_CROP, '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), 'big' => array('width' => 1000, 'height' => 4000, 'method' => Image::METHOD_SCALE, 'enlarge' => FALSE), 'huge' => array('width' => 2000, 'height' => 8000, 'method' => Image::METHOD_SCALE, 'enlarge' => FALSE)), 'sizes_embed' => array('small', 'normal'), 'size_enlarge' => 'big'));
開發者ID:yubinchen18,項目名稱:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代碼行數:3,代碼來源:image.php

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: array

<?php

return Settings::extend('item', array('list' => array('create' => array(), 'list' => array(), 'filter' => Settings::lock(array('type' => array('type' => 'option', 'operators' => array('='), 'options' => array()))))));
開發者ID:yubinchen18,項目名稱:A-basic-website-project-for-a-company-using-the-MVC-pattern-in-Kohana-framework,代碼行數:3,代碼來源:content.php


注:本文中的Settings::lock方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。