method fullOptionsRef documentation in bbn\Appui\Option
Returns each individual full option plus the children of options having this as alias.
Example
X::dump($opt->fullOptionsRef('type', 'media', 'note', 'appui'));
/*
array [
  ['id' => 21, 'id_parent' => 12, 'title' => "My option 21", 'myProperty' =>  "78%"],
  ['id' => 22, 'id_parent' => 12, 'title' => "My option 22", 'myProperty' =>  "26%"],
  ['id' => 25, 'id_parent' => 12, 'title' => "My option 25", 'myProperty' =>  "50%"],
  ['id' => 27, 'id_parent' => 12, 'title' => "My option 27", 'myProperty' =>  "40%"]
]
function($code = NULL)
  {
    if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) {
      $all = $this->fullOptions($id) ?? [];
      if ($aliases = $this->getAliases($id)) {
        foreach ($aliases as $a) {
          if ($tmp = $this->fullOptions($a[$this->fields['id']])) {
            array_push($all, ...$tmp);
          }
        }
      }
      return $all;
    }
    return null;
  }
  Returns each individual full option plus the children of options having this as alias. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
  
  
    
    
      
        
        
      
    
    
    
      
      
      
      
      
        
          
          
          
          
          
          
          
          
            
              
                
              
            
            
              
              This website uses cookies to ensure you get the best experience on our website.                
                
              
              
                
                
              
             
           
          
          
          
            
            © 2011-2025 
BBN Solutions