original_string: public static function get_descendants_ids($competency) {
          global $DB;
  
          $path = $DB->sql_like_escape($competency->get('path') . $competency->get('id') . '/') . '%';
          $like = $DB->sql_like('path', ':likepath');
          return $DB->get_fieldset_select(self::TABLE, 'id', $like, array('likepath' => $path));
      }
code: public static function get_descendants_ids($competency) {
          global $DB;
  
          $path = $DB->sql_like_escape($competency->get('path') . $competency->get('id') . '/') . '%';
          $like = $DB->sql_like('path', ':likepath');
          return $DB->get_fieldset_select(self::TABLE, 'id', $like, array('likepath' => $path));
      }
code_tokens: public static function get_descendants_ids ( $ competency ) { global $ DB ; $ path = $ DB -> sql_like_escape ( $ competency -> get ( 'path' ) . $ competency -> get ( 'id' ) . '/' ) . '%' ; $ like = $ DB -> sql_like ( 'path' , ':likepath' ) ; return $ DB -> get_fieldset_select ( self :: TABLE , 'id' , $ like , array ( 'likepath' => $ path ) ) ; }
docstring: Get descendant ids.
  
  @param competency $competency The competency.
  @return array Array of competencies ids.
docstring_tokens: Get descendant ids .