prepareTerm() public static method

public static prepareTerm ( $vpId = null, $name = null, $slug = null )
コード例 #1
0
 private function deleteTerm()
 {
     $this->storage->delete(EntityUtils::prepareTerm(self::$vpId));
     return [['vp_id' => self::$vpId, 'parent' => self::$vpId]];
 }
コード例 #2
0
 private function removeCategory()
 {
     $this->storage->delete(EntityUtils::preparePost(self::$vpId));
     $this->termTaxonomyStorage->delete(EntityUtils::prepareTermTaxonomy(self::$categoryTaxonomyVpId, self::$categoryVpId));
     $this->termStorage->delete(EntityUtils::prepareTerm(self::$categoryVpId));
     $this->userStorage->delete(EntityUtils::prepareUser(self::$authorVpId));
     return [['vp_id' => self::$vpId, 'parent' => self::$vpId], ['vp_id' => self::$categoryTaxonomyVpId, 'parent' => self::$categoryVpId], ['vp_id' => self::$categoryVpId, 'parent' => self::$categoryVpId], ['vp_id' => self::$authorVpId, 'parent' => self::$authorVpId]];
 }