icybee/module-views 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

icybee/module-views

Composer 安装命令:

composer require icybee/module-views

包简介

Allows dynamic data from modules to be displayed in content zones.

关键字:

README 文档

README

The Views module (views) allows dynamic data from modules to be displayed in content zones.

Modules usually define three view types: home, list and view. The home view displays a small number of records on an home page. The list view displays a list of records and comes with a pagination to browse through older or newer records. Finally, the view view displays the detail of a record.

Events

Views were collected

The Icybee\Modules\Views\Collection::collect event of class Collection\CollectEvent is fired after the views defined by the enabled modules have been collected. Event hooks may used this event to alter the collection.

Records fetched by the provided are altered

The Icybee\Modules\Views\View::alter_records:before event of class View\BeforeAlterRecords is fired before the records fetched by the provider are altered by the alter_records method of the view. The Icybee\Modules\Views\View::alter_records event of class View\AlterRecords is fired after the alter_records method was called. Event hooks may use these events to alter the records.

Events callbacks

Icybee\Modules\Pages\SaveOperation::process

Updates the target page of a view.

Prototype methods

Icybee\Modules\Nodes\Node::url

Returns the relative URL of a record for the specified view type.

Icybee\Modules\Nodes\Node::absolute_url

Returns the URL of a record for the specified view type.

Icybee\Modules\Nodes\Node::get_url

Returns the relative URL of a record.

Icybee\Modules\Node::get_absolute_url

Returns the URL of a record.

Icybee\Modules\Sites\Site::resolve_view_target

Returns the target page associated with a view.

Icybee\Modules\Sites\Site::resolve_view_url

Returns the URL of a view.

ICanBoogie\Core::get_views

Returns the view collection.

Markups

call-view

Displays a view.

<h2>Last articles</h2>
<p:call-view name="articles/home" />

Requirement

The package requires PHP 5.5 or later.

Installation

The recommended way to install this package is through Composer. Create a composer.json file and run php composer.phar install command to install it:

$ composer require icybee/module-views

Note: This module is part of the modules required by Icybee.

Cloning the repository

The package is available on GitHub, its repository can be cloned with the following command line:

$ git clone https://github.com/Icybee/module-views views

Testing

The test suite is ran with the make test command. Composer is automatically installed as well as all the dependencies required to run the suite. The package directory can later be cleaned with the make clean command.

The package is continuously tested by Travis CI.

Build Status

Documentation

The package is documented as part of the Icybee CMS documentation. The documentation for the package and its dependencies can be generated with the make doc command. The documentation is generated in the docs directory using ApiGen. The package directory can later by cleaned with the make clean command.

License

The module is licensed under the New BSD License - See the LICENSE file for details.

统计信息

  • 总下载量: 621
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固