public function createSearch( $default = false )
	{
		$search = parent::createSearch( $default );

		if( $default === true )
		{
			$expr = array(
				$search->getConditions(),
				$search->compare( '!=', 'order.statuspayment', MShop_Order_Item_Abstract::PAY_UNFINISHED ),
			);

			$search->setConditions( $search->combine( '&&', $expr ) );
		}

		return $search;
	}
public function createSearch( $default = false )
	{
		$search = parent::createSearch( $default );

		if( $default === true )
		{
			$expr = array(
				$search->getConditions(),
				$search->compare( '!=', 'order.statuspayment', MShop_Order_Item_Abstract::PAY_UNFINISHED ),
			);

			$search->setConditions( $search->combine( '&&', $expr ) );
		}

		return $search;
	}
public function createSearch ( $ default = false ) { $ search = parent :: createSearch ( $ default ) ; if ( $ default === true ) { $ expr = array ( $ search -> getConditions ( ) , $ search -> compare ( '!=' , 'order.statuspayment' , MShop_Order_Item_Abstract :: PAY_UNFINISHED ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; } return $ search ; }
Creates a search object.

@param boolean $default Add default criteria; Optional
@return MW_Common_Criteria_Interface
Creates a search object .