Help on common functions

Testing function: cura_get_current_school_term...

Getting the current school term for the current date (3 Aug 2026).

-> Date 3 Aug 2026 is not in a term.

Getting the current school term for 2 Jan 2012

-> Date 2 Jan 2012 is not in a term.

Testing function: cura_get_school_terms_in_period($start, $finish)...

Getting the terms in the period: 23 Mar 2013 to 25 Oct 2013

-> 2013 Term 4 2013-02-18 00:00:00 to 2013-03-28 00:00:00
-> 2013 Term 5 2013-04-15 00:00:00 to 2013-05-24 00:00:00
-> 2013 Term 6 2013-06-03 00:00:00 to 2013-07-23 00:00:00
-> 2014 Term 1 2013-09-02 00:00:00 to 2013-10-25 00:00:00

Getting the terms in the period: 29 Mar 2013 to 14 Apr 2013

-> No terms in the period: 29 Mar 2013 to 14 Apr 2013

Getting the terms in the period: 20 Feb 2013 to 20 Mar 2013

Array
(
    [479] => stdClass Object
        (
            [vid] => 479
            [uid] => 147
            [title] => 2013 Term 4
            [log] => 
            [status] => 1
            [comment] => 1
            [promote] => 0
            [sticky] => 0
            [nid] => 479
            [type] => school_term
            [language] => und
            [created] => 1397247066
            [changed] => 1397248043
            [tnid] => 0
            [translate] => 0
            [revision_timestamp] => 1397248043
            [revision_uid] => 1
            [field_term_dates] => Array
                (
                    [und] => Array
                        (
                            [0] => Array
                                (
                                    [value] => 2013-02-18 00:00:00
                                    [value2] => 2013-03-28 00:00:00
                                    [timezone] => Europe/London
                                    [timezone_db] => Europe/London
                                    [date_type] => datetime
                                )

                        )

                )

            [field_term_bill_days] => Array
                (
                    [und] => Array
                        (
                            [0] => Array
                                (
                                    [value] => 29
                                )

                        )

                )

            [field_school_year] => Array
                (
                    [und] => Array
                        (
                            [0] => Array
                                (
                                    [value] => 2013-01-01 00:00:00
                                    [timezone] => Europe/London
                                    [timezone_db] => Europe/London
                                    [date_type] => datetime
                                )

                        )

                )

            [field_school_term] => Array
                (
                    [und] => Array
                        (
                            [0] => Array
                                (
                                    [value] => 4
                                )

                        )

                )

            [rdf_mapping] => Array
                (
                    [rdftype] => Array
                        (
                            [0] => sioc:Item
                            [1] => foaf:Document
                        )

                    [title] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => dc:title
                                )

                        )

                    [created] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => dc:date
                                    [1] => dc:created
                                )

                            [datatype] => xsd:dateTime
                            [callback] => date_iso8601
                        )

                    [changed] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => dc:modified
                                )

                            [datatype] => xsd:dateTime
                            [callback] => date_iso8601
                        )

                    [body] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => content:encoded
                                )

                        )

                    [uid] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => sioc:has_creator
                                )

                            [type] => rel
                        )

                    [name] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => foaf:name
                                )

                        )

                    [comment_count] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => sioc:num_replies
                                )

                            [datatype] => xsd:integer
                        )

                    [last_activity] => Array
                        (
                            [predicates] => Array
                                (
                                    [0] => sioc:last_activity_date
                                )

                            [datatype] => xsd:dateTime
                            [callback] => date_iso8601
                        )

                )

            [cid] => 0
            [last_comment_timestamp] => 1397247066
            [last_comment_name] => 
            [last_comment_uid] => 165
            [comment_count] => 0
            [name] => billing
            [picture] => 0
            [data] => a:6:{s:7:"contact";i:1;s:16:"ckeditor_default";s:1:"t";s:20:"ckeditor_show_toggle";s:1:"t";s:14:"ckeditor_width";s:4:"100%";s:13:"ckeditor_lang";s:2:"en";s:18:"ckeditor_auto_lang";s:1:"t";}
        )

)

-> 2013 Term 4 2013-02-18 00:00:00 to 2013-03-28 00:00:00

Testing function: cura_get_school_holidays($start, $finish)...

Getting the school holidays in the period: 14 Dec 2012 to 26 Oct 2013

Array
(
    [20121222] => 1
    [20121223] => 1
    [20121224] => 1
    [20121225] => 1
    [20121226] => 1
    [20121227] => 1
    [20121228] => 1
    [20121229] => 1
    [20121230] => 1
    [20121231] => 1
    [20130101] => 1
    [20130102] => 1
    [20130103] => 1
    [20130104] => 1
    [20130105] => 1
    [20130106] => 1
    [20130209] => 1
    [20130210] => 1
    [20130211] => 1
    [20130212] => 1
    [20130213] => 1
    [20130214] => 1
    [20130215] => 1
    [20130216] => 1
    [20130217] => 1
    [20130329] => 1
    [20130330] => 1
    [20130331] => 1
    [20130401] => 1
    [20130402] => 1
    [20130403] => 1
    [20130404] => 1
    [20130405] => 1
    [20130406] => 1
    [20130407] => 1
    [20130408] => 1
    [20130409] => 1
    [20130410] => 1
    [20130411] => 1
    [20130412] => 1
    [20130413] => 1
    [20130414] => 1
    [20130525] => 1
    [20130526] => 1
    [20130527] => 1
    [20130528] => 1
    [20130529] => 1
    [20130530] => 1
    [20130531] => 1
    [20130601] => 1
    [20130602] => 1
    [20130724] => 1
    [20130725] => 1
    [20130726] => 1
    [20130727] => 1
    [20130728] => 1
    [20130729] => 1
    [20130730] => 1
    [20130731] => 1
    [20130801] => 1
    [20130802] => 1
    [20130803] => 1
    [20130804] => 1
    [20130805] => 1
    [20130806] => 1
    [20130807] => 1
    [20130808] => 1
    [20130809] => 1
    [20130810] => 1
    [20130811] => 1
    [20130812] => 1
    [20130813] => 1
    [20130814] => 1
    [20130815] => 1
    [20130816] => 1
    [20130817] => 1
    [20130818] => 1
    [20130819] => 1
    [20130820] => 1
    [20130821] => 1
    [20130822] => 1
    [20130823] => 1
    [20130824] => 1
    [20130825] => 1
    [20130826] => 1
    [20130827] => 1
    [20130828] => 1
    [20130829] => 1
    [20130830] => 1
    [20130831] => 1
    [20130901] => 1
    [20131026] => 1
)