Hotaru Docs

 [həʊdɒks]

SBBaseFunctions/filter

Description

Sets the filter for returning posts from database.

Usage

<?php filter( $vars, $limit, $all, $select, $orderby ) ?>

Parameters

$vars | array $limit | integer $all | boolean $select | string $orderby | string

Return Values

array if success, boolean (false) if fail

Examples

<?php
     $post->filter(array('post_tags LIKE %s' => '%tokyo%'), 10);     
?>

Source File

filter() is located in content/plugins/sb_Base/LIBS/SBBaseFunctions.php file.

Related

Getting StartedDesign and LayoutPlugin DevelopmentAdvanced TopicsFunction ReferenceTroubleshooting
SB Base