Giter Site home page Giter Site logo

lectio-api's Introduction

Stats

Top

lectio-api's People

Contributors

kredegc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

savler420

lectio-api's Issues

Login

Hej Krede.
Ville høre om du arbejder på en måde, hvorpå man kan angive sine loginoplysninger, så denne api igen virker? Har en lille drøm om at lave en applikation der tjekker hvorvidt et lokale er frit til studiemodulet.

Problemer med arrays

Jeg har nu testet din php fil som ser super smart ud, men er stødt ind i et problem.
Når jeg bruger funktionen: ->get_schedule_student($gymnasie_id, $lectio_id, $unixtime)
Og indsætter de passende variable f.eks. ($gymnasie_id="402" og $lectio_id="studentensid" og vores unixtime lyder på "1536580800".

Når jeg så prøver at hente elevens skema vha:

require('lectio.php');
$lectio = new lectio('simple_html_dom.php');
$schedule = $lectio->get_schedule_student($gymnasie_id, $lectio_id, $unixtime);

echo $schedule['schedule'][1]['lessons'][1]['title'];

Hvis jeg bruger echo $schedule['schedule'] står der "Array", men jeg ved ikke hvordan jeg kan få vist indholdet inde i arrayet såsom modul navn, tid og lokale osv..

Jeg har også prøvet funktionen:

print_r($lectioObject->get_schedule_student($gymnasie_id, $lectio_id, $unixtime));
Hvilket ikke giver noget resultat.

Jeg har dog prøvet funktionen:

echo "<pre>";
var_dump($schedule);

Som giver disse resultater:

array(7) {
  ["title"]=>
  NULL
  ["week"]=>
  int(0)
  ["year"]=>
  int(0)
  ["day"]=>
  string(0) ""
  ["weekdays"]=>
  array(0) {
  }
  ["schedule"]=>
  array(0) {
  }
  ["dayschedule"]=>
  array(0) {
  }
}

Det er nok mig som har lavet en fejl, da jeg er forholdvis ny til php, håber du kan hjælpe.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.