Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /naja/src/js/serializer/Serializer/ObjectHolder.class.js

naja
Discussion topic

Back to topic list

CVS update: /naja/src/js/serializer/Serializer/ObjectHolder.class.js

Reply

Author pablo_cabrera
Full name Pablo J. Cabrera Munoz
Date 2006-05-23 22:05:12 PDT
Message User: pablo_cabrera
Date: 2006-05-23 22:05:12-0700
Log:
 no message

File Changes:

Directory: /naja/src/js/seriali​zer/Serializer/
====================​====================​======

File [added]: ObjectHolder.class.js
Url: http://naja.tigris.o​rg/source/browse/naj​a/src/js/serializer/​Serializer/ObjectHol​der.class.js?rev=1.1​&content-type=te​xt/vnd.viewcvs-marku​p
Added lines: 43
---------------
/**
 * Holds an object instance and its index in the serializing context
 *
 * @param mixed pObject
 * @param Integer pIndex
 * @return ObjectHolder
 */
function ObjectHolder(pObject, pIndex) {
    /* Extends */

    var $object = new $class("ObjectHolder");

    $object.index = null;
    $object.object = null;

    $object.setObject = function(pValue) {
        $this.object = pValue;
    }

    $object.getObject = function() {
        return $this.object;
    }

    $object.setIndex = function(pValue) {
        $this.index = pValue;
    }

    $object.getIndex = function() {
        return $this.index;
    }

    if (typeof pObject != "undefined") {
        $object.object = pObject;
    }

    if (typeof pIndex != "undefined") {
        $object.index = pIndex;
    }

     $registerClass($object);

    return $object;
}

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /naja/src/js/serializer/Serializer/ObjectHolder.class.js pablo_cabrera Pablo J. Cabrera Munoz 2006-05-23 22:05:12 PDT
Messages per page: