src/actions/AdjacencyList/PartialTreeDataAction.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 68-76 (lines=9) @@ | 
                                                            
                                    | 65 |  |      */ | 
                                                            
                                    | 66 |  |     public $cacheLifeTime = 86400; | 
                                                            
                                    | 67 |  |  | 
                                                            
                                    | 68 |  |     public function init() | 
                                                            
                                    | 69 |  |     { | 
                                                            
                                    | 70 |  |         if ($this->className === null) { | 
                                                            
                                    | 71 |  |             throw new InvalidConfigException('Model name should be set in controller actions'); | 
                                                            
                                    | 72 |  |         } | 
                                                            
                                    | 73 |  |         if (!class_exists($this->className)) { | 
                                                            
                                    | 74 |  |             throw new InvalidConfigException('Model class does not exists'); | 
                                                            
                                    | 75 |  |         } | 
                                                            
                                    | 76 |  |     } | 
                                                            
                                    | 77 |  |  | 
                                                            
                                    | 78 |  |     public function run() | 
                                                            
                                    | 79 |  |     { | 
                                                                        
                 
                                                            
                    
src/actions/AdjacencyList/FullTreeDataAction.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 74-82 (lines=9) @@ | 
                                                            
                                    | 71 |  |      */ | 
                                                            
                                    | 72 |  |     public $cacheJson = false; | 
                                                            
                                    | 73 |  |  | 
                                                            
                                    | 74 |  |     public function init() | 
                                                            
                                    | 75 |  |     { | 
                                                            
                                    | 76 |  |         if (!isset($this->className)) { | 
                                                            
                                    | 77 |  |             throw new InvalidConfigException("Model name should be set in controller actions"); | 
                                                            
                                    | 78 |  |         } | 
                                                            
                                    | 79 |  |         if (!class_exists($this->className)) { | 
                                                            
                                    | 80 |  |             throw new InvalidConfigException("Model class does not exists"); | 
                                                            
                                    | 81 |  |         } | 
                                                            
                                    | 82 |  |     } | 
                                                            
                                    | 83 |  |  | 
                                                            
                                    | 84 |  |     public function run() | 
                                                            
                                    | 85 |  |     { |