Esempio n. 1
0
 /**
  * Constructor, builds column structures
  */
 public function __construct($keyID = NULL)
 {
     parent::__construct();
     if ($keyID !== NULL) {
         $this->load($keyID);
     }
 }
Esempio n. 2
0
 /**
  * Supercolumn constructor
  * @param string $superName Super Column name
  * @param PandraSuperColumnFamily $parentCF
  */
 public function __construct($superName, PandraSuperColumnFamily $parentCF = NULL)
 {
     // SuperColumn name
     $this->setName($superName);
     // Reference parent ColumnFamilySuper
     if ($parentCF !== NULL) {
         $this->_parentCF = $parentCF;
     }
     parent::__construct();
 }
Esempio n. 3
0
 /**
  * Sets parent Column Container
  * @param PandraColumnContainer $parent SuperColumnFamily container object, or NULL
  */
 public function setParent(PandraColumnContainer $parent, $bindToParent = TRUE)
 {
     if (!$parent instanceof PandraSuperColumnFamily) {
         throw new RuntimeException('Parent must be an instance of PandraSuperColumnFamily');
     }
     if ($bindToParent) {
         $parent->addSuperColumnObj($this);
     }
     // unbind existing parent
     $this->detach();
     $this->_parent = $parent;
 }