User Tools

Site Tools


stats:proc:createemptystats

This is an old revision of the document!


Create Empty Stat System

createEmptyStats() {
  remove /stats; # procedures only operate on valid documents, so we have to get rid of "whatever was there" before
  insert / 
    <stats>
      <accounts>
        <account username="admin" lastName="admin" firstName="admin" email="admin@stats.system" password="some hash of 'admin'">
          <admin />
        </account>
      </accounts>
      <exercises />
      <exams />
    </stats>;
} # roles: NONE
stats/proc/createemptystats.1317249380.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki