Skip to content

Instantly share code, notes, and snippets.

@hubertusanton
Created September 18, 2013 08:08
Show Gist options
  • Save hubertusanton/6606096 to your computer and use it in GitHub Desktop.
Save hubertusanton/6606096 to your computer and use it in GitHub Desktop.

Revisions

  1. hubertusanton created this gist Sep 18, 2013.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    public function AllChildrenInDateRegion() {

    return VacaturePage::get()->filter(
    array(
    'ParentID' => $this->ID,
    'DatumFrom:LessThan' => date('Y-m-d').' 00:00:00',
    'DatumTo:GreaterThan' => date('Y-m-d').' 23:59:59'
    )
    );

    }