Source Location: /php/filter_functions.php
filter_functions.php
holds filter functions
PHP versions 4 and 5
LICENSE: ARK - The Archaeological Recording Kit. An open-source framework for displaying and working with archaeological data Copyright (C) 2008 L - P : Partnership Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
void buildFltaction(
$filters, $qstr, array $filter)
[line 1505]
builds elements into a action search filter
[ Top ]
void buildFltatr(
$filters, $qstr)
[line 556]
[ Top ]
void buildFltftx(
$filters, $qstr, array $filter)
[line 63]
builds elements into a free text search filter
[ Top ]
void buildFltkey(
$filters, $qstr)
[line 279]
[ Top ]
array buildFltPlace(
array $filters, array $qstr)
[line 953]
--- PLACE --- // buildFltPlace() To build the existing search filter into a self contained array This filter is used when you want to query against a place.
[ Top ]
void buildFltSpan(
$filters, $qstr, array $filter)
[line 1273]
builds elements into a span search filter
[ Top ]
void buildFltstecd(
$filters, $qstr, array $filter)
[line 741]
builds elements into a sitecode search filter
[ Top ]
string dispDelOp(
string $filter_id)
[line 2047]
displays a delete link for filter builder functions
0.4
FIX ME: This function needs to be modified to remove the printing to screen
[ Top ]
void dispFltaction(
array $filter, $filter_id)
[line 1644]
displays a filter dialogue for action searches
[ Top ]
void dispFltatr(
$filter, $filter_id)
[line 679]
[ Top ]
void dispFltftx(
array $filter, $filter_id)
[line 242]
displays a filter dialogue for free text searches
[ Top ]
void dispFltkey(
$filter, $filter_id)
[line 457]
[ Top ]
void dispFltPlace(
array $filter, int $filter_id)
[line 1176]
dispFltPlace() displays the place search filter dialogue.
[ Top ]
void dispFltSpan(
array $filter, $filter_id)
[line 1436]
displays a filter dialogue for Span searches
[ Top ]
void dispFltstecd(
array $filter, $filter_id)
[line 904]
displays a filter dialogue for Site Code searches
[ Top ]
void dispSaveOp(
$filter_id)
[line 2012]
[ Top ]
string dispSetOperation(
string $filter_id)
[line 2075]
returns the set operation form elements filter builder functions
[ Top ]
void edtFtr(
$filter, $type, $nname, $sgrp, $cre_by, $qtype)
[line 1948]
[ Top ]
$array execFltaction(
array $filter, [boolean $simple = FALSE])
[line 1561]
executes an action based filter
v0.6
NOTE: $filter should contain: action - the action actor - the actor
[ Top ]
void execFltatr(
$filter, [ $simple = FALSE])
[line 606]
[ Top ]
array execFltftx(
array $filter, [boolean $simple = FALSE])
[line 105]
executes a free text search across the db
[ Top ]
$array execFltkey(
array $filter, [boolean $simple = FALSE])
[line 335]
executes an itemkey based filter
v0.4
NOTE: $filter should contain: key - the module key either the id of the module or the 3 letter mod code type - the filter type (should be set to 'key')
[ Top ]
array execFltPlace(
array $filter, [ $simple = FALSE], mapObj $map, array $mods)
[line 1014]
executes a place spatial filter
[ Top ]
array execFltSpan(
array $filter, [boolean $simple = FALSE])
[line 1343]
executes a span search across the db
[ Top ]
array execFltstecd(
array $filter, [boolean $simple = FALSE])
[line 783]
executes a site code search across the db
[ Top ]
void filterUrl(
$filter)
[line 1987]
[ Top ]
array getFtr(
integer $id)
[line 1915]
returns a filter from the database
[ Top ]
array prcsHits(
array $hits)
[line 1762]
processes hits into a properly formed results array
[ Top ]
array prcsHitsMod(
array $hits, string $mod)
[line 1820]
processes hits into a properly formed results array limiting the results to a single mod
0.5.1
NOTE: This is NOT the preferred method. The correct method is to use two filters to achieve this result. This is a specialised function for the mini search
[ Top ]
array resIntersect(
array $arr1, array $arr2)
[line 2102]
intersects results arrays in a similar way that the array_intersect() PHP function should
0.4
Note: Bear in mind that this function expects ARK standard results arrays not any old multidim array.
[ Top ]
array resIntersectSimple(
array $arr1, array $arr2)
[line 2142]
intersects multidim arrays
v0.5
Note: Something similar to this should be available as a PHP native function from PHP5 onwards. Check to see if this is now obsolete
[ Top ]
void verAddFtr(
$filters, $filter, $num_elements, $vtok)
[line 1712]
[ Top ]