original_string: public function is_parent_of(array $ids) {
          global $DB;
  
          list($insql, $params) = $DB->get_in_or_equal($ids, SQL_PARAMS_NAMED);
          $params['parentid'] = $this->get('id');
  
          return $DB->count_records_select(self::TABLE, "id $insql AND parentid = :parentid", $params) == count($ids);
      }
code: public function is_parent_of(array $ids) {
          global $DB;
  
          list($insql, $params) = $DB->get_in_or_equal($ids, SQL_PARAMS_NAMED);
          $params['parentid'] = $this->get('id');
  
          return $DB->count_records_select(self::TABLE, "id $insql AND parentid = :parentid", $params) == count($ids);
      }
code_tokens: public function is_parent_of ( array $ ids ) { global $ DB ; list ( $ insql , $ params ) = $ DB -> get_in_or_equal ( $ ids , SQL_PARAMS_NAMED ) ; $ params [ 'parentid' ] = $ this -> get ( 'id' ) ; return $ DB -> count_records_select ( self :: TABLE , "id $insql AND parentid = :parentid" , $ params ) == count ( $ ids ) ; }
docstring: Check if the competency is the parent of passed competencies.
  
  @param  array $ids IDs of supposedly direct children.
  @return boolean
docstring_tokens: Check if the competency is the parent of passed competencies .