~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Entity/DisplayGroup.php

  • Committer: Dan Garner
  • Date: 2018-01-18 13:14:48 UTC
  • mto: This revision was merged to the branch mainline in revision 605.
  • Revision ID: git-v1:6bb42143fa783456844e3bbb53352e175d3b1061
Work on PHP7 support and dev docker file
xibosignage/xibo#1380
xibosignage/xibo#1382

Show diffs side-by-side

added added

removed removed

Lines of Context:
552
552
     */
553
553
    public function validate()
554
554
    {
555
 
        if (!v::string()->notEmpty()->validate($this->displayGroup))
 
555
        if (!v::stringType()->notEmpty()->validate($this->displayGroup))
556
556
            throw new InvalidArgumentException(__('Please enter a display group name'), 'displayGroup');
557
557
 
558
 
        if (!empty($this->description) && !v::string()->length(null, 254)->validate($this->description))
 
558
        if (!empty($this->description) && !v::stringType()->length(null, 254)->validate($this->description))
559
559
            throw new InvalidArgumentException(__('Description can not be longer than 254 characters'), 'description');
560
560
 
561
561
        if ($this->isDisplaySpecific == 0) {