src/bbn/appui/masks.php
public function get(string $id): ?array
  {
    $mask = $this->db->rselect('bbn_notes_masks', [], ['id_note' => $id]);
    if ( $data = $this->notes->get($mask['id_note']) ){
      $data['default'] = $mask['def'];
      $data['id_type'] = $mask['id_type'];
      $data['type'] = $this->o->text($mask['id_type']);
      $data['name'] = $mask['name'];
      return $data;
    }
    return null;
  }
public function get(string $id): ?array
  {
    $mask = $this->db->rselect('bbn_notes_masks', [], ['id_note' => $id]);
    if ( $data = $this->notes->get($mask['id_note']) ){
      $data['default'] = $mask['def'];
      $data['id_type'] = $mask['id_type'];
      $data['type'] = $this->o->text($mask['id_type']);
      $data['name'] = $mask['name'];
      return $data;
    }
    return null;
  }
public function get ( string $ id ) : ? array { $ mask = $ this -> db -> rselect ( 'bbn_notes_masks' , [ ] , [ 'id_note' => $ id ] ) ; if ( $ data = $ this -> notes -> get ( $ mask [ 'id_note' ] ) ) { $ data [ 'default' ] = $ mask [ 'def' ] ; $ data [ 'id_type' ] = $ mask [ 'id_type' ] ; $ data [ 'type' ] = $ this -> o -> text ( $ mask [ 'id_type' ] ) ; $ data [ 'name' ] = $ mask [ 'name' ] ; return $ data ; } return null ; }
Gets the content of a mask based on the provided ID
@param string $id
@return array|null
Gets the content of a mask based on the provided ID