Pimcore\Model\Object\Classificationstore::setClass PHP 메소드

setClass() 공개 메소드

public setClass ( ClassDefinition $class )
$class ClassDefinition
    public function setClass(ClassDefinition $class)
    {
        $this->class = $class;
        return $this;
    }

Usage Example

예제 #1
0
 /**
  * This method is called in Object|Class::save() and is used to create the database table for the classification data
  * @return void
  */
 public function classSaved($class, $params = [])
 {
     $clasificationStore = new Object\Classificationstore();
     $clasificationStore->setClass($class);
     $clasificationStore->createUpdateTable();
 }