Pimcore\Model\Property::setCid PHP Method

setCid() public method

public setCid ( integer $cid ) : static
$cid integer
return static
    public function setCid($cid)
    {
        $this->cid = (int) $cid;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * @param $name
  * @param $type
  * @param $data
  * @param bool $inherited
  * @param bool $inheritable
  * @return $this
  */
 public function setProperty($name, $type, $data, $inherited = false, $inheritable = false)
 {
     $this->getProperties();
     $property = new Model\Property();
     $property->setType($type);
     $property->setCid($this->getId());
     $property->setName($name);
     $property->setCtype("object");
     $property->setData($data);
     $property->setInherited($inherited);
     $property->setInheritable($inheritable);
     $this->o_properties[$name] = $property;
     return $this;
 }
All Usage Examples Of Pimcore\Model\Property::setCid