186
193
* Write lock type
188
195
define('LOCK_WRITE', 2);
198
* ****************************************
200
* ****************************************
206
define('VIEW_TYPE_MODULE', 1);
211
define('VIEW_TYPE_SHOW_ITEM', 2);
214
* Administration view
216
define('VIEW_TYPE_ADMIN', 3);
221
define('VIEW_TYPE_PROGRESS_BAR', 4);
226
define('GALLERY_DEFAULT_VIEW', 'core.ShowItem');
229
* ****************************************
230
* Status code bitflags
231
* ****************************************
235
* The operation had errors
236
* TODO(bharat): Get rid of this; it's no longer necessary
238
define('GALLERY_ERROR', 0x00000001);
241
* A name collision happened in the filesystem or database as a result of this
242
* operation. A common cause for this is attempting to use an existing filename
243
* when moving an item from one location to another.
245
define('ERROR_COLLISION', 0x00000002);
248
* The object you're trying to access is no longer available. Perhaps it was
249
* deleted. You shouldn't get this when an object has simply moved.
251
define('ERROR_MISSING_OBJECT', 0x00000004);
254
* The lock you're trying to acquire is currently in use and was not released
255
* within the timeout period you specified.
257
define('ERROR_LOCK_IN_USE', 0x00000008);
260
* One of the parameters passed to this function is bad.
262
define('ERROR_BAD_PARAMETER', 0x00000010);
265
* Missing a value necessary to continue
267
define('ERROR_MISSING_VALUE', 0x00000020);
270
* An unspecified storage error occurred
272
define('ERROR_STORAGE_FAILURE', 0x00000040);
275
* A storage operation was attempted with an invalid storage connection
277
define('ERROR_STORAGE_CONNECTION', 0x00000080);
280
* You attempted to modify an object using an in-memory version that
281
* is out of date with the version that's in the storage
283
define('ERROR_OBSOLETE_DATA', 0x00000200);
286
* You attempted an operation which requires a lock.
288
define('ERROR_LOCK_REQUIRED', 0x00000400);
291
* We tried a file operation on an unsupported file type
293
define('ERROR_UNSUPPORTED_FILE_TYPE', 0x00000800);
296
* You attempted an illegal operation on a deleted object
298
define('ERROR_DELETED_OBJECT', 0x00001000);
301
* You attempted an operation which had a bad path component
303
define('ERROR_BAD_PATH', 0x00002000);
306
* You attempted an operation which had a bad data type
308
define('ERROR_BAD_DATA_TYPE', 0x00004000);
311
* You attempted to add a child to a GalleryItem which can't have children
313
define('ERROR_ILLEGAL_CHILD', 0x00008000);
316
* An unspecified error occured while completing a toolkit command.
318
define('ERROR_TOOLKIT_FAILURE', 0x00010000);
321
* We experienced a platform specific error (perhaps filesystem related)
323
define('ERROR_PLATFORM_FAILURE', 0x00020000);
326
* You did an operation on a derivative that is broken
328
define('ERROR_BROKEN_DERIVATIVE', 0x00040000);
331
* We tried an unsupported operation
333
define('ERROR_UNSUPPORTED_OPERATION', 0x00080000);
336
* We were unable to get a lock in the time allotted
338
define('ERROR_LOCK_TIMEOUT', 0x00100000);
341
* Something went wrong when loading or activating a plugin
343
define('ERROR_BAD_PLUGIN', 0x00200000);
346
* The module you tried to use requires configuration
348
define('ERROR_CONFIGURATION_REQUIRED', 0x00400000);
351
* You don't have permission to complete the given action
353
define('ERROR_PERMISSION_DENIED', 0x00800000);
356
* You don't have enough space for the operation required
358
define('ERROR_OUT_OF_SPACE', 0x01000000);
361
* The plugin exists, but the version on disk doesn't match the
362
* version in the database.
364
define('ERROR_PLUGIN_VERSION_MISMATCH', 0x02000000);
367
* The operation you attempted is unimplemented
369
define('ERROR_UNIMPLEMENTED', 0x40000000);
372
* An unknown error occurred
374
define('ERROR_UNKNOWN', 0x80000000);