concrete/src/Block/Block.php
public static function populateManually($blockInfo, $c, $a)
    {
        $b = new self();
        $b->setPropertiesFromArray($blockInfo);

        if (is_object($a)) {
            $b->a = $a;
            $b->arHandle = $a->getAreaHandle();
        } else {
            if ($a != null) {
                $b->arHandle = $a; // passing the area name. We only pass the object when we're adding from the front-end
            }
        }

        $b->cID = $c->getCollectionID();
        $b->c = $c;

        return $b;
    }
public static function populateManually($blockInfo, $c, $a)
    {
        $b = new self();
        $b->setPropertiesFromArray($blockInfo);

        if (is_object($a)) {
            $b->a = $a;
            $b->arHandle = $a->getAreaHandle();
        } else {
            if ($a != null) {
                $b->arHandle = $a; // passing the area name. We only pass the object when we're adding from the front-end
            }
        }

        $b->cID = $c->getCollectionID();
        $b->c = $c;

        return $b;
    }
public static function populateManually ( $ blockInfo , $ c , $ a ) { $ b = new self ( ) ; $ b -> setPropertiesFromArray ( $ blockInfo ) ; if ( is_object ( $ a ) ) { $ b -> a = $ a ; $ b -> arHandle = $ a -> getAreaHandle ( ) ; } else { if ( $ a != null ) { $ b -> arHandle = $ a ; // passing the area name. We only pass the object when we're adding from the front-end } } $ b -> cID = $ c -> getCollectionID ( ) ; $ b -> c = $ c ; return $ b ; }
Initialize the instance by manually specifying the data.

@param array|\Iterator $blockInfo A set key-value pairs used to initialize the instance
@param \Concrete\Core\Page\Collection\Collection $c The collection containing the block
@param \Concrete\Core\Area\Area|string|null $a the area containing the block (or its handle)

@return \Concrete\Core\Block\Block
Initialize the instance by manually specifying the data .