Search Forums
Forums
Kiwitrees on Twitter
    Tags

    age, name, customising, googlemaps, Support/Bug Reporting, backup, session, dead, library, ASSO, tags, kiwitrees theme, married, add, duplicates, 3.2.0, descendants, statistics, ID facts, family fact, fatal error, living, 3.0.0, custom text, contacts, transifex, HTML block, administration pages, I18N, webtrees 1.4.4.1, marriage, 3.3.3, random_media, emigration, prison, getClientIp, sanity, CHR, pop-ups, 3.2.2, custom modules, styles, dates, pages, login, dropbox. token, GEDCOM errors, updates, php 5.6, release, edit interface, users, progress, add_asso_facts, mobile, version, title, BAPM, performance, research tasks

    #10218

    pfelix
    Participant

    4 posts

    Hi and thanks for your response.
    I’ll look to all your infos.
    But one last technical question :

    Ho can I display directly to the KT_Event Object data as shown below with a print_r($fact) of the getFacts() controler ?

    KT_Event Object
    (
    [lineNumber] => 6
    [tag] => BIRT
    [date] => KT_Date Object
    (
    [qual1] =>
    [date1] => KT_Date_Gregorian Object
    (
    [y] => 1967
    [m] => 1
    [d] => 8
    [minJD] => 2439499
    [maxJD] => 2439499
    )
    )
    [place] =>
    [gedcomRecord] => 1 BIRT
    2 DATE 08 JAN 1947
    3 TIME 11:05
    2 NOTE Pierre Birth at 11h
    2 PLAC Paris
    3 MAP
    4 LATI N43.602387
    4 LONG E1.442884

    [/left]

    I can easily acces to the date with such code :

      $date_event_BIRT = $fact->getDate();
      $date_eventY_BIRT = $date_event_BIRT->date1->y;

    But How can I print :
    PLAC
    LATI
    LONG
    ?
    I’m not a real php dev …. just someone who tries to understand code !!!
    Thanks for your help