concrete/src/Area/Area.php
public function create($c, $arHandle)
    {
        $db = Database::connection();
        $db->Replace(
            'Areas',
            array('cID' => $c->getCollectionID(), 'arHandle' => $arHandle, 'arIsGlobal' => $this->isGlobalArea() ? 1 : 0),
            array('arHandle', 'cID'),
            true
        );
        $this->refreshCache($c);
        $area = self::get($c, $arHandle);
        $area->rescanAreaPermissionsChain();

        return $area;
    }
public function create($c, $arHandle)
    {
        $db = Database::connection();
        $db->Replace(
            'Areas',
            array('cID' => $c->getCollectionID(), 'arHandle' => $arHandle, 'arIsGlobal' => $this->isGlobalArea() ? 1 : 0),
            array('arHandle', 'cID'),
            true
        );
        $this->refreshCache($c);
        $area = self::get($c, $arHandle);
        $area->rescanAreaPermissionsChain();

        return $area;
    }
public function create ( $ c , $ arHandle ) { $ db = Database :: connection ( ) ; $ db -> Replace ( 'Areas' , array ( 'cID' => $ c -> getCollectionID ( ) , 'arHandle' => $ arHandle , 'arIsGlobal' => $ this -> isGlobalArea ( ) ? 1 : 0 ) , array ( 'arHandle' , 'cID' ) , true ) ; $ this -> refreshCache ( $ c ) ; $ area = self :: get ( $ c , $ arHandle ) ; $ area -> rescanAreaPermissionsChain ( ) ; return $ area ; }
Creates an area in the database. I would like to make this static but PHP pre 5.3 sucks at this stuff.

@param Page $c
@param string $arHandle

@return Area
Creates an area in the database . I would like to make this static but PHP pre 5 . 3 sucks at this stuff .