$variables = array( );
$a = preg_split( "/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );
session_id($old_id);
if (empty($ck)) $ck = session_get_cookie_params();
if (!empty($ADODB_SESSION_READONLY)) return;
switch ($driver) {
// empty_clob or empty_lob for oracle dbs
case 'oci805':
$lob_value = sprintf('empty_%s()', strtolower($clob));
}
if (!empty($sql)) {
ADODB_Session::_init();
if (empty($ADODB_SESSION_READONLY))
$variables = array( );
$a = preg_split( "/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE );
session_id($old_id);
if (empty($ck)) $ck = session_get_cookie_params();
if (!empty($ADODB_SESSION_READONLY)) return;
switch ($driver) {
// empty_clob or empty_lob for oracle dbs
case 'oci805':
$lob_value = sprintf('empty_%s()', strtolower($clob));
}
if (!empty($sql)) {
ADODB_Session::_init();
if (empty($ADODB_SESSION_READONLY))
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: NotEmpty.php 23775 2011-03-01 17:25:24Z ralph $
*/
class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
const ZERO = 16;
const EMPTY_ARRAY = 32;
const INVALID = 'notEmptyInvalid';
const IS_EMPTY = 'isEmpty';
self::ZERO => 'zero',
self::EMPTY_ARRAY => 'array',
*
* Returns true if and only if $value is not an empty value.
if (is_object($value)) {
$this->_error(self::IS_EMPTY);
*/
const VALID_NOT_EMPTY = 1;
* @param string $errorMsg
* @param bool $emptyIsOk Tells whether this can be submitted as empty (e.g. the validation tests only run if someone is actually submitted in the post.)
*/
public function addUploadedImage($field, $errorMsg = null, $emptyIsOk = true) {
$const = ($emptyIsOk) ? ValidationFormHelper::VALID_UPLOADED_IMAGE : ValidationFormHelper::VALID_UPLOADED_IMAGE_REQUIRED;
$this->addRequired($field, $errorMsg, $const);
* @param string $errorMsg
* @param bool $emptyIsOk Tells whether this can be submitted as empty (e.g. the validation tests only run if someone is actually submitted in the post.)
switch($validate) {
case ValidationFormHelper::VALID_NOT_EMPTY:
if (!$val->notempty($this->data[$field])) {
$this->fieldsInvalid[] = $f;
case ValidationFormHelper::VALID_INTEGER:
if ((!$num->integer($this->data[$field])) && ($val->notempty($this->data[$field]))) {
$fileURL = $this->getRemoteFileURL();
if (empty($fileURL)) {
$file = Marketplace::downloadRemoteFile($this->getRemoteFileURL());
if (empty($file) || $file == Package::E_PACKAGE_DOWNLOAD) {
$file = Marketplace::downloadRemoteFile($this->getRemoteFileURL());
if (empty($file) || $file == Package::E_PACKAGE_DOWNLOAD) {
//Only check items that have "unique handles"
if (empty($checkItem->handle)) {
//Check the "unique handles"
if (!empty($againstItem->handle) && (strtolower($checkItem->handle['handle']) == strtolower($againstItem->handle['handle']))) {
$cPath = Page::getCurrentPage()->getCollectionPath();
if (!empty($cPath)) {
*/
const VALID_NOT_EMPTY = 1;
* @param string $errorMsg
* @param bool $emptyIsOk Tells whether this can be submitted as empty (e.g. the validation tests only run if someone is actually submitted in the post.)
*/
public function addUploadedImage($field, $errorMsg = null, $emptyIsOk = true) {
$const = ($emptyIsOk) ? ValidationFormHelper::VALID_UPLOADED_IMAGE : ValidationFormHelper::VALID_UPLOADED_IMAGE_REQUIRED;
$this->addRequired($field, $errorMsg, $const);
* @param string $errorMsg
* @param bool $emptyIsOk Tells whether this can be submitted as empty (e.g. the validation tests only run if someone is actually submitted in the post.)
switch($validate) {
case ValidationFormHelper::VALID_NOT_EMPTY:
if (!$val->notempty($this->data[$field])) {
$this->fieldsInvalid[] = $f;
case ValidationFormHelper::VALID_INTEGER:
if ((!$num->integer($this->data[$field])) && ($val->notempty($this->data[$field]))) {