XÂY DỰNG MẠNG XÃ HỘI BẰNG PHP

Tìm thấy 10,000 tài liệu liên quan tới từ khóa "XÂY DỰNG MẠNG XÃ HỘI BẰNG PHP":

Xây dựng mạng xã hội bằng drupal

XÂY DỰNG MẠNG XÃ HỘI BẰNG DRUPAL

Xây dựng mạng xã hội bằng drupal

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 27 pot

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 27 POT

$extended['id'] = $id; $extended['video_id'] = $this->video_id; $this->registry->getObject('db')->insertRecords( 'statuses_videos', $extended ); }}?>LinksWhen sharing links with other users we need to at least store the URL itself. We could also store a brief desc[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 26 pps

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 26 PPS

* @return void */ public function __construct( Registry $registry, $id = 0 ) { $this->registry = $registry; parent::setTypeReference('image'); parent::__construct( $this->registry, $id ); }To call a method from an object's parent class, we use the parent keyword, followed by the scope[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 25 pps

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 25 PPS

{ $this->registry->errorPage( 'Access denied', 'Sorry, you are not allowed to delete that message'); }}Composing a new messageComposing a new message is the most complicated aspect for the feature, as there are a number of aspects to consider (and change, depending on the needs of the[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 28 pptx

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 28 PPTX

• Work out how many days there are in a particular monthCalendar libraryWe will save our calendar library le as /lib/calendar/calendar.class.php. The rst thing for us to do in our le, is create a number of variables, and the constructor.We need variables for:• The year the calendar repre[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 29 pot

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 29 POT

Events and Birthdays[ 266 ]Generate and outputTo actually display a calendar, we need some code which:• Requires the calendar library• Instantiates the object• Generates the month• Sends various bits of data to the template• Outputs the templateWe also need a template le with our 42 boxes in a[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 30 doc

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 30 DOC

Chapter 9[ 275 ]Getting the birthdaysWith the calendar setup, and a method in our relationships model for us to get the IDs of connected users, we can get the birthdays.First, we need to require the relationships model, instantiate the object, and get the IDs SQL:require_once( FRAMEWORK_PATH . 'mode[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 23 pps

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 23 PPS

increment, Primary KeyReference ID for the messageSender Integer The sender of the messageRecipient Integer The recipient of the messageSubject Varchar The subject the message relates toSent Timestamp When the message was sentMessage Longtext The contents of the message itselfRead Boolean Indicates[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 21 pdf

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 21 PDF

between two contacts of the user.4. If there are rows, we update our empty variable to false, so the object knows if the stream is empty or not.Download from Wow! eBook <www.wowebook.com>Chapter 6[ 183 ]5. We then iterate through the results making the time the status was posted more f[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 22 ppt

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 22 PPT

Status Stream[ 192 ] 'stream-' . $data['ID'], 'stream/types/' . $data['type_reference'] . '-fromself.tpl.php', $datatags ); } elseif( $data['poster'] == $data['profile'] ) { $this->registry->getObject('template')->addTemplateBit( 'stream-' . $data['ID'], 'stream/types/'[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 24 pot

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 24 POT

• Viewing a message• Creating a new messageDownload from Wow! eBook <www.wowebook.com>Chapter 7[ 219 ]Listing messagesTo list our messages, we simply require our messages controller, call the getInbox method, and send the cache to the template engine. The read_style eld in the resul[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 39 ppt

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 39 PPT

$registry->getObject('template')->addTemplateBit('userbar', 'userbar.tpl.php');}if( in_array( $controller, $controllers ) ){ require_once( FRAMEWORK_PATH . 'controllers/' . $controller . '/controller.php'); $controllerInc = $controller.'controller'; $controller = new $c[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 37 ppt

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 37 PPT

Download from Wow! eBook <www.wowebook.com>Chapter 11[ 351 ]How could it work?There are three commonly-used methods for an API to work:• REST: Representational State Transfer• RPC: Remote Procedure Call• SOAP: Simple Object Access ProtocolLet's look into what these are.RESTRepresent[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 38 potx

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP 38 POTX

header("HTTP/1.0404NotFound");The second part of the response is the data itself; for instance, if the API request was for a list of users, the response would be the list of users. Commonly, response data is sent as XML or JSON. Some APIs allow the consumer to request the format of the response b[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 40 potx

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 40 POTX

the resources as our site becomes more popular. Normally, with shared hosting, accounts can be upgraded to include more space or bandwidth, though not additional processing power; with VPS and cloud providers, the specication of the server, and the processing power allocated can often be upgraded a[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 41 pdf

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 41 PDF

Deployment, Security, and Maintenance[ 382 ]From here, we can select which tables we wish to download, and have the option of either exporting the database as SQL, or as a download containing SQL, as shown in the following screenshot:Importing our local database to the hosting accountWith a copy of[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 31 potx

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 31 POTX

To list events by connected users in a certain month, we simply use the relationships model, call the getIDsByUser method, and then query the events table, ltering by the results from the getIDs query, where the date is in a specic month and year: /** * List events by connected users in specified[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 33 pot

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 33 POT

pr.user_id=p.creator AND p.topic=" . $this->id; return $sql; }We have a method to set if we are including the rst post. If we are, we include the class, instantiate the object, and assign it to the post property in the topic object. /** * Set if this save should also save the first post * @p[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 32 ppsx

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 32 PPSX

Calendar of eventsWe looked earlier at integrating the calendar library with birthdays, so why not try and integrate the events with the calendar too? The code is in the download bundle for this book if you need help.Viewing an eventTo view an event, we simply call the toTags method on the model, an[r]

10 Đọc thêm

Thiết kế mạng xã hội với PHP - 34 pot

THIẾT KẾ MẠNG XÃ HỘI VỚI PHP - 34 POT

The rst stage, as with the other aspects of our social network, is the database table. We've already discussed what information the group needs to store; the following database structure simply formalizes that:Field Type DescriptionID Integer, Auto-increment, Primary KeyInternal ID / reference for[r]

10 Đọc thêm