2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

image

gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  • Thursday, May 3, 2018
  • by gorriecoe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 53 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 83 % Grown

The README.md

Silverstripe sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string., (*1)

Installation

Composer is the recommended way of installing SilverStripe modules., (*2)

composer require gorriecoe/silverstripe-sreg

Requirements

  • silverstripe/framework ^4.0

Maintainers

Usage

class MyObject extends DataObject
{
    private static $has_one = [
        'Relation' => 'SomeObject',
        'AFallBack' => 'SomeObject',
    ];

    public function SomeFunction()
    {
        return 'Some text';
    }

    public function getValue()
    {
        return $this->sreg('Lorem ipsum {$Relation.Title|AFallBack.Title|Fall back text} {$SomeFunction}');
    }
}

The Versions

03/05 2018

dev-master

9999999-dev http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

03/05 2018

1.2.2

1.2.2.0 http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

16/04 2018

1.2.1

1.2.1.0 http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

08/04 2018

1.1.0

1.1.0.0 http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

08/04 2018

1.2.0

1.2.0.0 http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

03/04 2018

1.0.2

1.0.2.0 http://github.com/gorriecoe/silverstripe-sreg

Simple tokenizer that allows you to use .ss template like variables in a dataobjects string.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe tokenizer sreg

16/02 2018

1.0.1

1.0.1.0 http://github.com/gorriecoe/silverstripe-sreg

Simple syntax parser that allows you to use .ss template like variables in a string

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe sreg

16/02 2018

1.0.0

1.0.0.0 http://github.com/gorriecoe/silverstripe-sreg

Simple syntax parser that allows you to use .ss template like variables in a string

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe sreg