LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • Docoflow\Docoflow
  • Docoflow\Entity\Group
  • Docoflow\Entity\Step
  • Docoflow\Entity\Verificator
  • Docoflow\Facades\Action
  • Docoflow\Facades\Activity
  • Docoflow\Facades\Flo
  • Docoflow\Facades\StateActivity
  • Docoflow\Flo
  • Docoflow\Models\Workflow
  • Docoflow\Models\WorkflowAction
  • Docoflow\Models\WorkflowActivity
  • Docoflow\Models\WorkflowGroups
  • Docoflow\Models\WorkflowNotification
  • Docoflow\Models\WorkflowState
  • Docoflow\Models\WorkflowStateActivity
  • Docoflow\Models\WorkflowStep
  • Docoflow\Models\WorkflowVerificator
  • Docolight
  • Docolight\Agno\AgnoModule
  • Docolight\Container\Container
  • Docolight\Http\Headers
  • Docolight\Http\JsonResponse
  • Docolight\Http\MimeResponse
  • Docolight\Http\Response
  • Docolight\Http\ResponseFactory
  • Docolight\Rest\Handler\RestfulErrorHandler
  • Docolight\Rest\Http\RestFulController
  • Docolight\Support\ActiveRecordWrapper
  • Docolight\Support\Arr
  • Docolight\Support\Carbonate
  • Docolight\Support\ClassLoader
  • Docolight\Support\Collection
  • Docolight\Support\CollectionDataProvider
  • Docolight\Support\Debug\Dumper
  • Docolight\Support\Debug\HtmlDumper
  • Docolight\Support\Facade
  • Docolight\Support\Factory
  • Docolight\Support\Fluent
  • Docolight\Support\Html
  • Docolight\Support\IterablePager
  • Docolight\Support\Repository
  • Docolight\Support\Set
  • Docolight\Support\Str
  • Docotory\Factory

Interfaces

  • Docoflow\Contracts\DocoflowContract
  • Docoflow\Contracts\ValidationStatus
  • Docolight\Http\Contracts\Arrayable

Traits

  • Docoflow\Traits\BulkValidator
  • Docoflow\Traits\Entity
  • Docoflow\Traits\HasMutator
  • Docoflow\Traits\Validable
  • Docolight\Agno\Traits\HasAssetsUrl
  • Docolight\Agno\Traits\HasAutoload
  • Docolight\Support\Traits\Macroable
  • Docotory\Traits\HasFactories

Exceptions

  • Docolight\Container\BindingResolutionException
  • Docotory\ResolvingTypeException

Functions

  • array_add
  • array_build
  • array_collapse
  • array_divide
  • array_dot
  • array_except
  • array_first
  • array_flatten
  • array_forget
  • array_get
  • array_has
  • array_last
  • array_only
  • array_pluck
  • array_pull
  • array_replace_value
  • array_set
  • array_sort
  • array_sort_recursive
  • array_where
  • cache
  • camel_case
  • class_basename
  • class_uses_recursive
  • collect
  • container
  • data_get
  • dd
  • def
  • dump
  • e
  • ends_with
  • fluent
  • get
  • head
  • input
  • last
  • object_get
  • preg_replace_sub
  • request
  • response
  • session
  • snake_case
  • starts_with
  • str_contains
  • str_finish
  • str_is
  • str_limit
  • str_random
  • str_replace_array
  • str_slug
  • studly_case
  • title_case
  • trait_uses_recursive
  • transaction
  • trimtolower
  • value
  • with
 1 <?php
 2 
 3 namespace Docoflow\Traits;
 4 
 5 /**
 6  * Validate all model in current entities. You can reject all steps and validators using this trait.
 7  *
 8  * @author Krisan Alfa Timur <krisanalfa@gmail.com>
 9  */
10 trait BulkValidator
11 {
12     /**
13      * Approve all.
14      *
15      * @return mixed
16      */
17     public function approve()
18     {
19         foreach ($this as $validable) {
20             $validable->approve();
21         }
22 
23         return $this;
24     }
25 
26     /**
27      * Approve all if it's not expired.
28      *
29      * @return mixed
30      */
31     public function approveIf()
32     {
33         foreach ($this as $validable) {
34             $validable->approveIf();
35         }
36 
37         return $this;
38     }
39 
40     /**
41      * Reject all.
42      *
43      * @return mixed
44      */
45     public function reject()
46     {
47         foreach ($this as $validable) {
48             $validable->reject();
49         }
50 
51         return $this;
52     }
53 
54     /**
55      * Reject all if it's not expired.
56      *
57      * @return mixed
58      */
59     public function rejectIf()
60     {
61         foreach ($this as $validable) {
62             $validable->rejectIf();
63         }
64 
65         return $this;
66     }
67 
68     /**
69      * Reset all.
70      *
71      * @return mixed
72      */
73     public function reset()
74     {
75         foreach ($this as $validable) {
76             $validable->reset();
77         }
78 
79         return $this;
80     }
81 
82     /**
83      * Reset all if it's not expired.
84      *
85      * @return mixed
86      */
87     public function resetIf()
88     {
89         foreach ($this as $validable) {
90             $validable->resetIf();
91         }
92 
93         return $this;
94     }
95 }
96 
LFT API documentation generated by ApiGen