Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArQuery

Source Location: /sub/ArQuery.class.php

Class Overview


PHP class to build WHERE condition for SQL statement using MySQL REGEXP to implement Arabic lexical rules


Author(s):

Copyright:

  • Khaled Al-Shamaa 2008

Methods



Class Details

[line 39]
PHP class to build WHERE condition for SQL statement using MySQL REGEXP to implement Arabic lexical rules



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  Khaled Al-Shamaa 2008
link:  http://www.ar-php.com


[ Top ]


Class Methods


method getArrFields [line 122]

Array getArrFields( )

Getting values of $fields Array in array format



Tags:

return:  Value of $fields array in Array format
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


[ Top ]

method getMode [line 112]

Integer getMode( )

Getting $mode propority value that refer to search mode [0 for OR logic | 1 for AND logic]



Tags:

return:  Value of $mode properity
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


[ Top ]

method getStrFields [line 134]

String getStrFields( )

Getting values of $fields array in String format (comma delimated)



Tags:

return:  Values of $fields array in String format (comma delimated)
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


[ Top ]

method getWhereCondition [line 150]

String getWhereCondition( String $arg)

Build WHERE section of the SQL statement using defind lex's rules, search mode [AND | OR], and handle also phrases (inclosed by "") using normal LIKE condition to match it as it is.



Tags:

return:  The WHERE section in SQL statement (MySQL database engine format)
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

String   $arg   String that user search for in the database table

[ Top ]

method setArrFields [line 49]

TRUE setArrFields( Array $arrConfig)

Setting value for $fields array



Tags:

return:  if success, or FALSE if fail
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

Array   $arrConfig   Name of the fields that SQL statement will search them (in array format where items are those fields names)

[ Top ]

method setMode [line 93]

TRUE setMode( Integer $mode)

Setting $mode propority value that refer to search mode [0 for OR logic | 1 for AND logic]



Tags:

return:  if success, or FALSE if fail
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

Integer   $mode   Setting value to be saved in the $mode propority

[ Top ]

method setStrFields [line 74]

TRUE setStrFields( String $strConfig)

Setting value for $fields array



Tags:

return:  if success, or FALSE if fail
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

String   $strConfig   Name of the fields that SQL statement will search them (in string format using comma as delimated)

[ Top ]


Documentation generated on Thu, 21 Feb 2008 13:58:55 +0200 by phpDocumentor 1.4.0