2017 © Pedro Peláez
 

library app-orm-behaviour-publish

Publish behaviour for the Ride ORM.

image

ride/app-orm-behaviour-publish

Publish behaviour for the Ride ORM.

  • Friday, April 27, 2018
  • by ride-user
  • Repository
  • 10 Watchers
  • 0 Stars
  • 277 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Ride: ORM Publish Behaviour

Publish behaviour of the ORM in a Ride application., (*1)

This will add a boolean isPublished field to set the state. Optionally you can use the datePublishedFrom and datePublishedTill datetime fields to specify the publication., (*2)

A method isPublishedEntry($date = null) should be used to check if the entry is published., (*3)

To enable, add behaviour.publish model option and set it to true., (*4)

models.xml


<models>
    <model name="Post">
        <field name="title" type="string">
            <validation name="required"/>
        </field>
        <field name="teaser" type="wysiwyg" localized="true">
            <validation name="required"/>
        </field>

        <format name="title">{title}</format>
        <format name="teaser">{teaser}</format>

        <option name="behaviour.publish" value="true" />
    </model>
</models>

Installation

You can use Composer to install this application., (*5)

composer require ride/app-orm-behaviour-publish

The Versions

27/04 2018

dev-master

9999999-dev

Publish behaviour for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/04 2018

dev-develop

dev-develop

Publish behaviour for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/04 2018

1.0.2

1.0.2.0

Publish behaviour for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/04 2018

1.0.1

1.0.1.0

Publish behaviour for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

14/10 2016

1.0.0

1.0.0.0

Publish behaviour for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

20/05 2016

0.1.0

0.1.0.0

Publish behaviour for the Ride ORM.

  Sources   Download

The Requires

 

by Joris Vandeweerd